From: Ian Jackson Date: Sun, 14 Oct 2018 13:16:31 +0000 (+0100) Subject: Escape: Add missing r in regexp literals ('...' => r'...') [9] X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4d10ab214e26ee5e31a70f9f07cdb6b7d7272fb6;p=git-buildpackage.git 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 --- 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""",