Prevent spack test flake8 from making changes (#4023)
This commit is contained in:
parent
6f62a4fe36
commit
0488654f67
@ -54,12 +54,12 @@ def flake8_package():
|
||||
package = FileFilter(filename)
|
||||
|
||||
# Make the change
|
||||
package.filter('unmodified', 'modified')
|
||||
package.filter("state = 'unmodified'", "state = 'modified'", string=True)
|
||||
|
||||
yield filename
|
||||
|
||||
# Undo the change
|
||||
package.filter('modified', 'unmodified')
|
||||
package.filter("state = 'modified'", "state = 'unmodified'", string=True)
|
||||
|
||||
|
||||
def test_changed_files(parser, flake8_package):
|
||||
|
Loading…
Reference in New Issue
Block a user