diff options
author | codedragon <mariak@mariakathryn.net> | 2017-05-24 21:23:46 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2017-05-24 21:23:46 (GMT) |
commit | 3480ef9dd3177be8c0d71a74853dca6e5b11fbe1 (patch) | |
tree | 05131d3bbf65b39a602fdcd424a5736b5822c4e2 /Lib | |
parent | 7c2f82d158a19ec9ee6b7e259c243e1f06f0434f (diff) | |
download | cpython-3480ef9dd3177be8c0d71a74853dca6e5b11fbe1.zip cpython-3480ef9dd3177be8c0d71a74853dca6e5b11fbe1.tar.gz cpython-3480ef9dd3177be8c0d71a74853dca6e5b11fbe1.tar.bz2 |
bpo-30445: Allow appended output in RecursionError message
Running under coverage sometimes causes 'in comparison' to be added to the end of the RecursionError message, which is acceptable.
Patched by Maria Mckinley
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_traceback.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py index 7276bc7..e483353 100644 --- a/Lib/test/test_traceback.py +++ b/Lib/test/test_traceback.py @@ -344,7 +344,8 @@ class TracebackFormatTests(unittest.TestCase): # 2nd last line contains the repetition count self.assertEqual(actual[:-2], expected[:-2]) self.assertRegex(actual[-2], expected[-2]) - self.assertEqual(actual[-1], expected[-1]) + # last line can have additional text appended + self.assertIn(expected[-1], actual[-1]) # Check the recursion count is roughly as expected rec_limit = sys.getrecursionlimit() |