Skip to content

Commit 800a54d

Browse files
committed
MAINT: clean up import from _pytest
1 parent cddd99c commit 800a54d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scpdt/plugin.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
from _pytest import doctest as pydoctest, outcomes
1111
from _pytest.doctest import DoctestModule, DoctestTextfile
1212
from _pytest.pathlib import import_path
13-
from _pytest.outcomes import skip, OutcomeException
1413

1514
from scpdt.impl import DTChecker, DTParser, DebugDTRunner
1615
from scpdt.conftest import dt_config
17-
from .util import np_errstate, matplotlib_make_nongui
16+
from scpdt.util import np_errstate, matplotlib_make_nongui
1817
from scpdt.frontend import find_doctests
1918

2019

@@ -161,7 +160,7 @@ def collect(self):
161160
)
162161
except ImportError:
163162
if self.config.getvalue("doctest_ignore_import_errors"):
164-
skip("unable to import module %r" % self.path)
163+
outcomes.skip("unable to import module %r" % self.path)
165164
else:
166165
raise
167166

@@ -272,7 +271,7 @@ def report_failure(self, out, test, example, got):
272271
raise failure
273272

274273
def report_unexpected_exception(self, out, test, example, exc_info):
275-
if isinstance(exc_info[1], OutcomeException):
274+
if isinstance(exc_info[1], outcomes.OutcomeException):
276275
raise exc_info[1]
277276
if isinstance(exc_info[1], bdb.BdbQuit):
278277
outcomes.exit("Quitting debugger")

0 commit comments

Comments
 (0)