summaryrefslogtreecommitdiff
path: root/testing/test_pdb.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-04-27 02:25:38 +0200
committerDaniel Hahler <git@thequod.de>2019-04-27 02:25:38 +0200
commit308b733b9d387b487104ed850063824e9a41bcfa (patch)
tree17e081d7183ae01368cd9189467869c5853414a7 /testing/test_pdb.py
parent7f519f8ab7a3036163b6482127c0ce04446a2017 (diff)
downloadpytest-308b733b9d387b487104ed850063824e9a41bcfa.tar.gz
Revert "Merge pull request #4854 from blueyed/pdb-skip"
This reverts commit e88aa957aed7ee9dc3649e88052f548f5ffd0911, reversing changes made to 1410d3dc9a61001f71b74ea800b203e92a25d689. I do not think it warrants an option anymore, and there is a way to achieve this via `--pdbcls` if needed.
Diffstat (limited to 'testing/test_pdb.py')
-rw-r--r--testing/test_pdb.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/testing/test_pdb.py b/testing/test_pdb.py
index cc2ea15d2..0a72a2907 100644
--- a/testing/test_pdb.py
+++ b/testing/test_pdb.py
@@ -9,7 +9,6 @@ import sys
import _pytest._code
import pytest
from _pytest.debugging import _validate_usepdb_cls
-from _pytest.main import EXIT_NOTESTSCOLLECTED
try:
breakpoint
@@ -1123,19 +1122,6 @@ def test_pdb_suspends_fixture_capturing(testdir, fixture):
assert "> PDB continue (IO-capturing resumed for fixture %s) >" % (fixture) in rest
-def test_pdb_skip_option(testdir):
- p = testdir.makepyfile(
- """
- print("before_set_trace")
- __import__('pdb').set_trace()
- print("after_set_trace")
- """
- )
- result = testdir.runpytest_inprocess("--pdb-ignore-set_trace", "-s", p)
- assert result.ret == EXIT_NOTESTSCOLLECTED
- result.stdout.fnmatch_lines(["*before_set_trace*", "*after_set_trace*"])
-
-
def test_pdbcls_via_local_module(testdir):
"""It should be imported in pytest_configure or later only."""
p1 = testdir.makepyfile(