ID EN
Unittest

enterContext

Python 3.11

Enter the supplied context manager. If successful, also add its __exit__() method as a cleanup function by addCleanup() and return the result of the __enter__() method.

Syntax

PYTHON
enterContext(cm)

See Also

context manager __exit__() addCleanup() __enter__()