[Python-checkins] [tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484)
ambv
webhook-mailer at python.org
Tue Sep 21 18:06:18 EDT 2021
https://github.com/python/cpython/commit/a0073471002bed0169fb806703e26880bbcceb73
commit: a0073471002bed0169fb806703e26880bbcceb73
branch: main
author: andrei kulakov <andrei.avk at gmail.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-22T00:06:13+02:00
summary:
[tests] Add missing assert against expected tracebacks in test_exceptions.py (GH-28484)
files:
M Lib/test/test_exceptions.py
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 6141f2e8f62b0..70d10ebc66e98 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -2298,6 +2298,7 @@ def test_range_of_offsets(self):
except SyntaxError as exc:
with support.captured_stderr() as err:
sys.__excepthook__(*sys.exc_info())
+ self.assertIn(expected, err.getvalue())
the_exception = exc
def test_encodings(self):
More information about the Python-checkins
mailing list