From 4d10ab214e26ee5e31a70f9f07cdb6b7d7272fb6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Oct 2018 14:16:31 +0100 Subject: 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 --- tests/11_test_dch_main.py | 4 ++-- 1 file 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""", -- cgit v1.2.3