diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-10-14 11:17:43 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-10-15 10:15:08 +0200 |
commit | 6b1342253eecd83e514400fccc531205450b13d3 (patch) | |
tree | 44180789a4991c356740dbd2212b548ec35e7368 /tests/18_test_Config.py | |
parent | 497addcb69ddb53199c75d29004239e1cbb8495a (diff) |
Fix flake8's W605 (invalid escape sequence)
See also
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
Diffstat (limited to 'tests/18_test_Config.py')
-rw-r--r-- | tests/18_test_Config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/18_test_Config.py b/tests/18_test_Config.py index 60cd9cff..43513c2b 100644 --- a/tests/18_test_Config.py +++ b/tests/18_test_Config.py @@ -50,7 +50,7 @@ class TestConfigParser(unittest.TestCase, GbpLogTester): parser = GbpOptionParser('%scmd2' % prefix) self.assertEqual(parser.config['single_git_override_option1'], 'single_git_override_value1') for line in range(0, 2): - self._check_log(line, ".*Old style config section \[git-cmd2\] found please rename to \[cmd2\]") + self._check_log(line, r'.*Old style config section \[git-cmd2\] found please rename to \[cmd2\]') def test_single_gbp_override(self): """ @@ -60,7 +60,7 @@ class TestConfigParser(unittest.TestCase, GbpLogTester): parser = GbpOptionParser('%scmd3' % prefix) self.assertEqual(parser.config['single_gbp_override_option1'], 'single_gbp_override_value1') for line in range(0, 2): - self._check_log(line, ".*Old style config section \[gbp-cmd3\] found please rename to \[cmd3\]") + self._check_log(line, r'.*Old style config section \[gbp-cmd3\] found please rename to \[cmd3\]') def test_single_git_override_disabled_deprecations(self): """ |