PyDocs

Nav

Development Tools

TestCase.enterContext

unittest

method of TestCase · Added in 3.11 (source)
  • TestCase.enterContext(cm)
Enters the supplied context manager.

If successful, also adds its __exit__ method as a cleanup
function and returns the result of the __enter__ method.
0 Examples
No examples for unittest/TestCase.enterContext.
See Also
No see-alsos for unittest/TestCase.enterContext
0 Notes
No notes for TestCase.enterContext