diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-02-01 17:26:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-02-01 17:26:14 (GMT) |
commit | 72268ae1c0f4bf4071c6e70bb6a332848a132d5d (patch) | |
tree | cece85a0b7f2fdaeb16070af47a12f9e9b0c7b93 | |
parent | fdbc397f4d765c15e6178ae1ecf8002dfeca3d2b (diff) | |
download | cpython-72268ae1c0f4bf4071c6e70bb6a332848a132d5d.zip cpython-72268ae1c0f4bf4071c6e70bb6a332848a132d5d.tar.gz cpython-72268ae1c0f4bf4071c6e70bb6a332848a132d5d.tar.bz2 |
Fix test_gdb.test_wrapper_call() on Python 2
Issue #29367. On Python 2, __init__ name is render as u'__init__'.
-rw-r--r-- | Lib/test/test_gdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index 681a1ee..b7554d6 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -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): |