summaryrefslogtreecommitdiff
path: root/testtools/tests/test_with_with.py
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-07-29 17:16:43 +0100
committerJonathan Lange <jml@canonical.com>2011-07-29 17:16:43 +0100
commitc6485d52586b3d81c97d65e6d67a1580cc3da038 (patch)
treee5a96f116180e753a6c5ef090cc3136fa951d022 /testtools/tests/test_with_with.py
parentf4a528bb17c04376f80693d554fe0056e2792fcf (diff)
downloadtesttools-c6485d52586b3d81c97d65e6d67a1580cc3da038.tar.gz
Nicer error message for regex fail.
Diffstat (limited to 'testtools/tests/test_with_with.py')
-rw-r--r--testtools/tests/test_with_with.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testtools/tests/test_with_with.py b/testtools/tests/test_with_with.py
index 23ce203..e06adeb 100644
--- a/testtools/tests/test_with_with.py
+++ b/testtools/tests/test_with_with.py
@@ -32,7 +32,7 @@ class TestExpectedException(TestCase):
raise ValueError('mismatch')
except AssertionError:
e = sys.exc_info()[1]
- self.assertEqual("'mismatch' does not match 'tes.'", str(e))
+ self.assertEqual("'mismatch' does not match /tes./", str(e))
else:
self.fail('AssertionError not raised.')