From c4750959acbfc3057f12aaec832483ba30898d1c Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Wed, 10 May 2017 20:13:20 +0200 Subject: #30190: fix invalid escape sequence warnings (#1534) --- Lib/unittest/test/test_assertions.py | 6 +++--- 1 file 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), -- cgit v0.12