summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/cmd/flake8.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/test/cmd/flake8.py b/lib/spack/spack/test/cmd/flake8.py
index bde8d199a7..438791c988 100644
--- a/lib/spack/spack/test/cmd/flake8.py
+++ b/lib/spack/spack/test/cmd/flake8.py
@@ -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):