From: Victor Stinner Date: Wed, 1 Feb 2017 16:00:32 +0000 (+0100) Subject: Make test_gdb.test_wrapper_call() make reliable X-Git-Tag: v3.7.0a1~1446 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f94b68a025e9b35d5b612d815818b4e9e1c55fcc;p=python Make test_gdb.test_wrapper_call() make reliable Issue #29367. Use two break points to prevent breakpoint during Python initialization. --- 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("