diff options
author | Anthony Sottile <asottile@umich.edu> | 2019-05-25 21:58:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-25 21:58:39 -0700 |
commit | b3f8fabac8a5a32ab2f358c158141b2d2631c36c (patch) | |
tree | c89f5198f0d84cbc203d90ddad79c1203052deae /testing/test_pdb.py | |
parent | 10ca84ffc56c2dd2d9dc4bd71b7b898e083500cd (diff) | |
parent | c081c01eb1b4191e1bc241b331b644ca91b900b1 (diff) | |
download | pytest-b3f8fabac8a5a32ab2f358c158141b2d2631c36c.tar.gz |
Merge pull request #5308 from blueyed/minor
Minor fixes
Diffstat (limited to 'testing/test_pdb.py')
-rw-r--r-- | testing/test_pdb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/test_pdb.py b/testing/test_pdb.py index c0ba7159b..bdb7be940 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -817,7 +817,7 @@ class TestPDB(object): result.stdout.fnmatch_lines(["*NameError*xxx*", "*1 error*"]) assert custom_pdb_calls == [] - def test_pdb_custom_cls_with_settrace(self, testdir, monkeypatch): + def test_pdb_custom_cls_with_set_trace(self, testdir, monkeypatch): testdir.makepyfile( custom_pdb=""" class CustomPdb(object): @@ -1133,14 +1133,14 @@ def test_pdbcls_via_local_module(testdir): p1 = testdir.makepyfile( """ def test(): - print("before_settrace") + print("before_set_trace") __import__("pdb").set_trace() """, mypdb=""" class Wrapped: class MyPdb: def set_trace(self, *args): - print("settrace_called", args) + print("set_trace_called", args) def runcall(self, *args, **kwds): print("runcall_called", args, kwds) @@ -1161,7 +1161,7 @@ def test_pdbcls_via_local_module(testdir): str(p1), "--pdbcls=mypdb:Wrapped.MyPdb", syspathinsert=True ) assert result.ret == 0 - result.stdout.fnmatch_lines(["*settrace_called*", "* 1 passed in *"]) + result.stdout.fnmatch_lines(["*set_trace_called*", "* 1 passed in *"]) # Ensure that it also works with --trace. result = testdir.runpytest( |