mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix test_gdb.test_wrapper_call() on Python 2
Issue #29367. On Python 2, __init__ name is render as u'__init__'.
This commit is contained in:
parent
fdbc397f4d
commit
72268ae1c0
1 changed files with 2 additions and 2 deletions
|
@ -862,8 +862,8 @@ id(42)
|
|||
# Verify with "py-bt":
|
||||
gdb_output = self.get_stack_trace(cmd,
|
||||
cmds_after_breakpoint=['break wrapper_call', 'continue', 'py-bt'])
|
||||
self.assertIn("<method-wrapper '__init__' of MyList object at ",
|
||||
gdb_output)
|
||||
self.assertRegex(gdb_output,
|
||||
r"<method-wrapper u?'__init__' of MyList object at ")
|
||||
|
||||
|
||||
class PyPrintTests(DebuggerTests):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue