Skip to content

Commit

Permalink
#30190: fix invalid escape sequence warnings (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo authored May 10, 2017
1 parent f6eae5b commit c475095
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/unittest/test/test_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ def testNotEqual(self):
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),
Expand Down

0 comments on commit c475095

Please sign in to comment.