We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd70d69 commit 285ca54Copy full SHA for 285ca54
src/_pytest/nose.py
@@ -23,7 +23,9 @@ def get_skip_exceptions():
23
def pytest_runtest_makereport(item, call):
24
if call.excinfo and call.excinfo.errisinstance(get_skip_exceptions()):
25
# let's substitute the excinfo with a pytest.skip one
26
- call2 = call.__class__(lambda: runner.skip(str(call.excinfo.value)), call.when)
+ call2 = runner.CallInfo.from_call(
27
+ lambda: runner.skip(str(call.excinfo.value)), call.when
28
+ )
29
call.excinfo = call2.excinfo
30
31
0 commit comments