diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-07-29 17:16:43 +0100 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-07-29 17:16:43 +0100 |
| commit | c6485d52586b3d81c97d65e6d67a1580cc3da038 (patch) | |
| tree | e5a96f116180e753a6c5ef090cc3136fa951d022 /testtools/tests/test_with_with.py | |
| parent | f4a528bb17c04376f80693d554fe0056e2792fcf (diff) | |
| download | testtools-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.py | 2 |
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.') |
