LEFT | RIGHT |
1 #!/usr/bin/env python3 | |
2 | |
3 """Unit tests for the with statement specified in PEP 343.""" | 1 """Unit tests for the with statement specified in PEP 343.""" |
4 | 2 |
5 | 3 |
6 __author__ = "Mike Bland" | 4 __author__ = "Mike Bland" |
7 __email__ = "mbland at acm dot org" | 5 __email__ = "mbland at acm dot org" |
8 | 6 |
9 import sys | 7 import sys |
10 import unittest | 8 import unittest |
11 from collections import deque | 9 from collections import deque |
12 from contextlib import _GeneratorContextManager, contextmanager | 10 from contextlib import _GeneratorContextManager, contextmanager |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 run_unittest(FailureTestCase, NonexceptionalTestCase, | 741 run_unittest(FailureTestCase, NonexceptionalTestCase, |
744 NestedNonexceptionalTestCase, ExceptionalTestCase, | 742 NestedNonexceptionalTestCase, ExceptionalTestCase, |
745 NonLocalFlowControlTestCase, | 743 NonLocalFlowControlTestCase, |
746 AssignmentTargetTestCase, | 744 AssignmentTargetTestCase, |
747 ExitSwallowsExceptionTestCase, | 745 ExitSwallowsExceptionTestCase, |
748 NestedWith) | 746 NestedWith) |
749 | 747 |
750 | 748 |
751 if __name__ == '__main__': | 749 if __name__ == '__main__': |
752 test_main() | 750 test_main() |
LEFT | RIGHT |