@@ -817,7 +817,7 @@ def test_pdb_custom_cls_without_pdb(self, testdir, custom_pdb_calls):
817
817
result .stdout .fnmatch_lines (["*NameError*xxx*" , "*1 error*" ])
818
818
assert custom_pdb_calls == []
819
819
820
- def test_pdb_custom_cls_with_settrace (self , testdir , monkeypatch ):
820
+ def test_pdb_custom_cls_with_set_trace (self , testdir , monkeypatch ):
821
821
testdir .makepyfile (
822
822
custom_pdb = """
823
823
class CustomPdb(object):
@@ -1133,14 +1133,14 @@ def test_pdbcls_via_local_module(testdir):
1133
1133
p1 = testdir .makepyfile (
1134
1134
"""
1135
1135
def test():
1136
- print("before_settrace ")
1136
+ print("before_set_trace ")
1137
1137
__import__("pdb").set_trace()
1138
1138
""" ,
1139
1139
mypdb = """
1140
1140
class Wrapped:
1141
1141
class MyPdb:
1142
1142
def set_trace(self, *args):
1143
- print("settrace_called ", args)
1143
+ print("set_trace_called ", args)
1144
1144
1145
1145
def runcall(self, *args, **kwds):
1146
1146
print("runcall_called", args, kwds)
@@ -1161,7 +1161,7 @@ def runcall(self, *args, **kwds):
1161
1161
str (p1 ), "--pdbcls=mypdb:Wrapped.MyPdb" , syspathinsert = True
1162
1162
)
1163
1163
assert result .ret == 0
1164
- result .stdout .fnmatch_lines (["*settrace_called *" , "* 1 passed in *" ])
1164
+ result .stdout .fnmatch_lines (["*set_trace_called *" , "* 1 passed in *" ])
1165
1165
1166
1166
# Ensure that it also works with --trace.
1167
1167
result = testdir .runpytest (
0 commit comments