summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-10-14 14:16:31 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-10-14 15:17:27 +0100
commit4d10ab214e26ee5e31a70f9f07cdb6b7d7272fb6 (patch)
tree18ed79f2426069c3243455b4fc434260a995c72c
parenta7fc5f1bc5d57f307c7b4ebca30957bc3b667151 (diff)
Escape: Add missing r in regexp literals ('...' => r'...') [9]
Detected by flake8, eg ./gbp/deb/git.py:35:6: W605 invalid escape sequence '\)' Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--tests/11_test_dch_main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/11_test_dch_main.py b/tests/11_test_dch_main.py
index 7fc8260..14cf593 100644
--- a/tests/11_test_dch_main.py
+++ b/tests/11_test_dch_main.py
@@ -371,7 +371,7 @@ class TestScriptDch(DebianGitTestRepo):
msg="""test non-debian closes 1\n\nCloses: EX-123""")
self.add_file("closes1", "test file",
msg="""test non-debian closes 2\n\nCloses: EX-5678""")
- options = ["--meta", '--meta-closes-bugnum=ex-\d+']
+ options = ["--meta", r'--meta-closes-bugnum=ex-\d+']
lines = self.run_dch(options)
self.assertIn(""" * test non-debian closes 1 (Closes: EX-123)\n""",
lines)
@@ -383,7 +383,7 @@ class TestScriptDch(DebianGitTestRepo):
msg="""test non-debian closes 1\n\nExample: EX-123""")
self.add_file("closes1", "test file",
msg="""test non-debian closes 2\n\nExample: EX-5678""")
- options = ["--meta", '--meta-closes-bugnum=ex-\d+',
+ options = ["--meta", r'--meta-closes-bugnum=ex-\d+',
'--meta-closes=Example']
lines = self.run_dch(options)
self.assertIn(""" * test non-debian closes 1 (Example: EX-123)\n""",