Prevent spack test flake8 from making changes (#4023)

This commit is contained in:
Adam J. Stewart 2017-04-27 15:18:38 -05:00 committed by GitHub
parent 6f62a4fe36
commit 0488654f67

View File

@ -54,12 +54,12 @@ def flake8_package():
package = FileFilter(filename) package = FileFilter(filename)
# Make the change # Make the change
package.filter('unmodified', 'modified') package.filter("state = 'unmodified'", "state = 'modified'", string=True)
yield filename yield filename
# Undo the change # Undo the change
package.filter('modified', 'unmodified') package.filter("state = 'modified'", "state = 'unmodified'", string=True)
def test_changed_files(parser, flake8_package): def test_changed_files(parser, flake8_package):