MCPcopy Create free account
hub / github.com/pytest-dev/pytest / setup_class

Method setup_class

testing/test_unittest.py:455–459  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

453
454class TestTrialUnittest:
455 def setup_class(cls):
456 cls.ut = pytest.importorskip("twisted.trial.unittest")
457 # on windows trial uses a socket for a reactor and apparently doesn't close it properly
458 # https://twistedmatrix.com/trac/ticket/9227
459 cls.ignore_unclosed_socket_warning = ("-W", "always")
460
461 def test_trial_testcase_runtest_not_collected(self, pytester: Pytester) -> None:
462 pytester.makepyfile(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected