summaryrefslogtreecommitdiff
path: root/Lib/test/test_with.py
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2015-04-13 22:11:34 +0200
committerdoko@ubuntu.com <doko@ubuntu.com>2015-04-13 22:11:34 +0200
commit65da9a87c543eec3126ced378464da0fc8cd7542 (patch)
treecbd250edf6901d8969f3554eb2bc619e9e1924a4 /Lib/test/test_with.py
parentae18f387e4d0dd0083dc579feef395a5cbf890ce (diff)
parent38c707e7e0322f9139bb51ad73ede1e3b46985ef (diff)
downloadcpython-git-65da9a87c543eec3126ced378464da0fc8cd7542.tar.gz
merge heads
Diffstat (limited to 'Lib/test/test_with.py')
-rw-r--r--Lib/test/test_with.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/test/test_with.py b/Lib/test/test_with.py
index 7068a80970..fcd28f6735 100644
--- a/Lib/test/test_with.py
+++ b/Lib/test/test_with.py
@@ -8,7 +8,6 @@ import sys
import unittest
from collections import deque
from contextlib import _GeneratorContextManager, contextmanager
-from test.support import run_unittest
class MockContextManager(_GeneratorContextManager):
@@ -737,14 +736,5 @@ class NestedWith(unittest.TestCase):
self.assertEqual(10, b1)
self.assertEqual(20, b2)
-def test_main():
- run_unittest(FailureTestCase, NonexceptionalTestCase,
- NestedNonexceptionalTestCase, ExceptionalTestCase,
- NonLocalFlowControlTestCase,
- AssignmentTargetTestCase,
- ExitSwallowsExceptionTestCase,
- NestedWith)
-
-
if __name__ == '__main__':
- test_main()
+ unittest.main()