diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-02-01 17:00:32 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-02-01 17:00:32 +0100 |
commit | 06d9525203b8a495978fb0ec2f7af4c2b2cfb1aa (patch) | |
tree | 36342391cc503f04258b95ba5232cb1f56ac48ca | |
parent | fba5031c50d359d3d1531ab88f19f2e8b6d4531b (diff) | |
download | cpython-06d9525203b8a495978fb0ec2f7af4c2b2cfb1aa.tar.gz |
Make test_gdb.test_wrapper_call() make reliable
Issue #29367. Use two break points to prevent breakpoint during Python
initialization.
-rw-r--r-- | Lib/test/test_gdb.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index 247c3adeec..681a1ee6cc 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -856,13 +856,12 @@ id(42) def __init__(self): super().__init__() # wrapper_call() + id("first break point") l = MyList() ''') # Verify with "py-bt": gdb_output = self.get_stack_trace(cmd, - breakpoint='wrapper_call', - cmds_after_breakpoint=['py-bt'], - ) + cmds_after_breakpoint=['break wrapper_call', 'continue', 'py-bt']) self.assertIn("<method-wrapper '__init__' of MyList object at ", gdb_output) |