Commit c4750959 authored by Giampaolo Rodola's avatar Giampaolo Rodola Committed by GitHub

#30190: fix invalid escape sequence warnings (#1534)

parent f6eae5bf
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment