MCPcopy Index your code
hub / github.com/RustPython/RustPython / enterClassContext

Method enterClassContext

Lib/unittest/case.py:495–497  ·  view source on GitHub ↗

Same as enterContext, but class-wide.

(cls, cm)

Source from the content-addressed store, hash-verified

493
494 @classmethod
495 def enterClassContext(cls, cm):
496 """Same as enterContext, but class-wide."""
497 return _enter_context(cm, cls.addClassCleanup)
498
499 def setUp(self):
500 "Hook method for setting up the test fixture before exercising it."

Callers 4

setUpClassMethod · 0.80
new_setUpClassFunction · 0.80

Calls 1

_enter_contextFunction · 0.85

Tested by 3

setUpClassMethod · 0.64