summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-10 18:13:20 (GMT)
committerGitHub <noreply@github.com>2017-05-10 18:13:20 (GMT)
commitc4750959acbfc3057f12aaec832483ba30898d1c (patch)
tree22daf53cecd91bb9e573cdb84ae1ff819372549b /Lib/unittest
parentf6eae5bf1c5d7b83e5d5bdbecfff928e478c1cfd (diff)
downloadcpython-c4750959acbfc3057f12aaec832483ba30898d1c.zip
cpython-c4750959acbfc3057f12aaec832483ba30898d1c.tar.gz
cpython-c4750959acbfc3057f12aaec832483ba30898d1c.tar.bz2
#30190: fix invalid escape sequence warnings (#1534)
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/test/test_assertions.py6
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),