summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
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),