SIGN IN SIGN UP

bpo-45046: Support context managers in unittest (GH-28045)

Add methods enterContext() and enterClassContext() in TestCase.
Add method enterAsyncContext() in IsolatedAsyncioTestCase.
Add function enterModuleContext().
(cherry picked from commit 086c6b1b0fe8d47ebd15512d7bdcb64c60a360f0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
M
Miss Islington (bot) committed
c63c8ac2389d715c761f56bfcf17a685b62a0bd3
Parent: a85bdd7
Committed by GitHub <noreply@github.com> on 5/8/2022, 3:12:19 PM