diff options
author | Arthur Zamarin <arthurzam@gmail.com> | 2021-06-01 09:11:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 08:11:30 +0200 |
commit | cdaff4db4710c791b0ca5c8e0f8a6030cf077c46 (patch) | |
tree | 4dec18e4dcee992c8ac570e7fb2948d533980677 | |
parent | ef9b5377e806df6fc9783e68fa2824dbdb9762b6 (diff) | |
download | zope-exceptions-cdaff4db4710c791b0ca5c8e0f8a6030cf077c46.tar.gz |
Adapt to python 3.10 SyntaxError messages (#19)
Co-authored-by: Marius Gedminas <marius@gedmin.as>
-rw-r--r-- | src/zope/exceptions/tests/test_exceptionformatter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/exceptions/tests/test_exceptionformatter.py b/src/zope/exceptions/tests/test_exceptionformatter.py index 64729b1..8eddc16 100644 --- a/src/zope/exceptions/tests/test_exceptionformatter.py +++ b/src/zope/exceptions/tests/test_exceptionformatter.py @@ -668,7 +668,7 @@ class Test_format_exception(unittest.TestCase): self.assertEqual(lines[0], ' syntax error') # PyPy has a shorter prefix self.assertTrue(lines[1].endswith(' ^')) - self.assertEqual(lines[2], 'SyntaxError: invalid syntax') + self.assertTrue(lines[2].startswith('SyntaxError: invalid syntax'), lines[2]) def test_traceback_info_non_ascii(self): __traceback_info__ = u"Have a Snowman: \u2603" |