summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-02-01 18:26:14 +0100
committerVictor Stinner <victor.stinner@gmail.com>2017-02-01 18:26:14 +0100
commita5d98c131bd07ee7adca2e1efb6557bf3e064838 (patch)
treec324f84970d346be242640fa8419603fd1376e9b
parentf4bb50d8e1bc9fb5eee226b901838ce9c399824e (diff)
downloadcpython-a5d98c131bd07ee7adca2e1efb6557bf3e064838.tar.gz
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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 681a1ee6cc..b7554d698c 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):