diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-27 15:18:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 15:18:38 -0500 |
commit | 0488654f67b8e177dbf598484a5220d92ad91ac2 (patch) | |
tree | 9e968e228dab0dd26a284576755218d21b6bf1a7 | |
parent | 6f62a4fe36f5cb24f947903a8e96760b10df0258 (diff) | |
download | spack-0488654f67b8e177dbf598484a5220d92ad91ac2.tar.gz spack-0488654f67b8e177dbf598484a5220d92ad91ac2.tar.bz2 spack-0488654f67b8e177dbf598484a5220d92ad91ac2.tar.xz spack-0488654f67b8e177dbf598484a5220d92ad91ac2.zip |
Prevent spack test flake8 from making changes (#4023)
-rw-r--r-- | lib/spack/spack/test/cmd/flake8.py | 4 |
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): |