Skip to content

Commit e3a012b

Browse files
authored
Merge branch 'main' into docs-clarify-addopts-comma
2 parents a823142 + a620d24 commit e3a012b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/_pytest/unittest.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -372,18 +372,6 @@ def pytest_runtest_makereport(item: Item, call: CallInfo[None]) -> None:
372372
except AttributeError:
373373
pass
374374

375-
# Convert unittest.SkipTest to pytest.skip.
376-
# This is actually only needed for nose, which reuses unittest.SkipTest for
377-
# its own nose.SkipTest. For unittest TestCases, SkipTest is already
378-
# handled internally, and doesn't reach here.
379-
unittest = sys.modules.get("unittest")
380-
if unittest and call.excinfo and isinstance(call.excinfo.value, unittest.SkipTest):
381-
excinfo = call.excinfo
382-
call2 = CallInfo[None].from_call(
383-
lambda: pytest.skip(str(excinfo.value)), call.when
384-
)
385-
call.excinfo = call2.excinfo
386-
387375

388376
# Twisted trial support.
389377
classImplements_has_run = False

0 commit comments

Comments
 (0)