-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore Python 2.6 compatibility in tests
contextlib.nested was removed in Python 3.0, because of problems with exceptions raised in initialization of its individual context managers. Its replacement, ExitStack, is not available in Python 2. Emulate the old "nested" in terms of ExitStack if it's not available. Partially reverts commit 973202b
- Loading branch information
Showing
1 changed file
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters