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

This commit is contained in:
Giampaolo Rodola 2017-05-10 20:13:20 +02:00 committed by GitHub
parent f6eae5bf1c
commit c4750959ac
1 changed files with 3 additions and 3 deletions

View File

@ -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),