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:
Victor Stinner 2017-02-01 18:26:14 +01:00
parent fdbc397f4d
commit 72268ae1c0

View file

@ -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):