diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-10 18:13:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 18:13:20 (GMT) |
commit | c4750959acbfc3057f12aaec832483ba30898d1c (patch) | |
tree | 22daf53cecd91bb9e573cdb84ae1ff819372549b | |
parent | f6eae5bf1c5d7b83e5d5bdbecfff928e478c1cfd (diff) | |
download | cpython-c4750959acbfc3057f12aaec832483ba30898d1c.zip cpython-c4750959acbfc3057f12aaec832483ba30898d1c.tar.gz cpython-c4750959acbfc3057f12aaec832483ba30898d1c.tar.bz2 |
#30190: fix invalid escape sequence warnings (#1534)
-rw-r--r-- | Lib/unittest/test/test_assertions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/unittest/test/test_assertions.py b/Lib/unittest/test/test_assertions.py index b046669e..f5e64d6 100644 --- a/Lib/unittest/test/test_assertions.py +++ b/Lib/unittest/test/test_assertions.py @@ -225,9 +225,9 @@ class TestLongMessage(unittest.TestCase): def testAlmostEqual(self): self.assertMessages( 'assertAlmostEqual', (1, 2), - ["^1 != 2 within 7 places \(1 difference\)$", "^oops$", - "^1 != 2 within 7 places \(1 difference\)$", - "^1 != 2 within 7 places \(1 difference\) : oops$"]) + [r"^1 != 2 within 7 places \(1 difference\)$", "^oops$", + r"^1 != 2 within 7 places \(1 difference\)$", + r"^1 != 2 within 7 places \(1 difference\) : oops$"]) def testNotAlmostEqual(self): self.assertMessages('assertNotAlmostEqual', (1, 1), |