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 365fceb commit 1ee2f1cCopy full SHA for 1ee2f1c
Lib/test/test_sys_settrace.py
@@ -1570,6 +1570,28 @@ def func():
1570
1571
self.run_and_compare(func, EXPECTED_EVENTS)
1572
1573
+ def test_correct_tracing_quickened_call_class_init(self):
1574
+
1575
+ class C:
1576
+ def __init__(self):
1577
+ self
1578
1579
+ def func():
1580
+ C()
1581
1582
+ EXPECTED_EVENTS = [
1583
+ (0, 'call'),
1584
+ (1, 'line'),
1585
+ (-3, 'call'),
1586
+ (-2, 'line'),
1587
+ (-2, 'return'),
1588
+ (1, 'return')]
1589
1590
+ self.run_and_compare(func, EXPECTED_EVENTS)
1591
+ # Quicken
1592
+ for _ in range(100):
1593
+ func()
1594
1595
1596
EVENT_NAMES = [
1597
'call',
0 commit comments