changeset: 106363:ffd2e5f9256a user: Victor Stinner date: Wed Feb 01 17:00:32 2017 +0100 files: Lib/test/test_gdb.py description: Make test_gdb.test_wrapper_call() make reliable Issue #29367. Use two break points to prevent breakpoint during Python initialization. diff -r 54fa95b19fae -r ffd2e5f9256a Lib/test/test_gdb.py --- a/Lib/test/test_gdb.py Wed Feb 01 16:29:54 2017 +0100 +++ b/Lib/test/test_gdb.py Wed Feb 01 17:00:32 2017 +0100 @@ -856,13 +856,12 @@ 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("