remove pytest_namespace from _pytest.skipping
This commit is contained in:
parent
90788defb2
commit
9b755f6ec6
|
@ -57,10 +57,6 @@ def pytest_configure(config):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def pytest_namespace():
|
|
||||||
return dict(xfail=xfail)
|
|
||||||
|
|
||||||
|
|
||||||
class XFailed(pytest.fail.Exception):
|
class XFailed(pytest.fail.Exception):
|
||||||
""" raised from an explicit call to pytest.xfail() """
|
""" raised from an explicit call to pytest.xfail() """
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ __all__ = [
|
||||||
'yield_fixture',
|
'yield_fixture',
|
||||||
'fail',
|
'fail',
|
||||||
'skip',
|
'skip',
|
||||||
|
'xfail',
|
||||||
'importorskip',
|
'importorskip',
|
||||||
'exit',
|
'exit',
|
||||||
'mark',
|
'mark',
|
||||||
|
@ -43,6 +44,7 @@ from _pytest.debugging import pytestPDB as __pytestPDB
|
||||||
from _pytest.recwarn import warns, deprecated_call
|
from _pytest.recwarn import warns, deprecated_call
|
||||||
from _pytest.runner import fail, skip, importorskip, exit
|
from _pytest.runner import fail, skip, importorskip, exit
|
||||||
from _pytest.mark import MARK_GEN as mark
|
from _pytest.mark import MARK_GEN as mark
|
||||||
|
from _pytest.skipping import xfail
|
||||||
set_trace = __pytestPDB.set_trace
|
set_trace = __pytestPDB.set_trace
|
||||||
|
|
||||||
_preloadplugins() # to populate pytest.* namespace so help(pytest) works
|
_preloadplugins() # to populate pytest.* namespace so help(pytest) works
|
||||||
|
|
Loading…
Reference in New Issue