We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23a5a31 commit b89dd60Copy full SHA for b89dd60
Lib/test/test_sys_settrace.py
@@ -976,6 +976,26 @@ class A:
976
(3, 'return'),
977
(1, 'return')])
978
979
+ def test_try_in_try(self):
980
+ def func():
981
+ try:
982
983
+ pass
984
+ except Exception as ex:
985
986
+ except Exception:
987
988
+
989
+ # This doesn't conform to PEP 626
990
+ self.run_and_compare(func,
991
+ [(0, 'call'),
992
+ (1, 'line'),
993
+ (2, 'line'),
994
+ (3, 'line'),
995
+ (5, 'line'),
996
+ (5, 'return')])
997
998
999
class SkipLineEventsTraceTestCase(TraceTestCase):
1000
"""Repeat the trace tests, but with per-line events skipped"""
1001
0 commit comments