summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/spec_semantics.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/spack/spack/test/spec_semantics.py b/lib/spack/spack/test/spec_semantics.py
index f65cc44ff5..1c92587ee5 100644
--- a/lib/spack/spack/test/spec_semantics.py
+++ b/lib/spack/spack/test/spec_semantics.py
@@ -825,15 +825,15 @@ class TestSpecSematics(object):
spec.format(fmt_str)
bad_formats = [
- '{}',
- 'name}',
- '\{name}', # NOQA: ignore=W605
- '{name',
- '{name\}', # NOQA: ignore=W605
- '{_concrete}',
- '{dag_hash}',
- '{foo}',
- '{+variants.debug}'
+ r'{}',
+ r'name}',
+ r'\{name}',
+ r'{name',
+ r'{name\}',
+ r'{_concrete}',
+ r'{dag_hash}',
+ r'{foo}',
+ r'{+variants.debug}'
]
for fmt_str in bad_formats: