summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contextlib.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-13 01:25:59 (GMT)
committerBrett Cannon <brett@python.org>2013-06-13 01:25:59 (GMT)
commit3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237 (patch)
tree5ef61b4c8c1b5bfaaafb1e1e0cd03afe7971caf7 /Lib/test/test_contextlib.py
parente382b5868a4daca614589270b6b3fe5c50059986 (diff)
downloadcpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.zip
cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.tar.gz
cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.tar.bz2
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
Diffstat (limited to 'Lib/test/test_contextlib.py')
-rw-r--r--Lib/test/test_contextlib.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py
index d13659d..a38cc48 100644
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -617,9 +617,5 @@ class TestIgnored(unittest.TestCase):
'Hello'[50]
-# This is needed to make the test actually run under regrtest.py!
-def test_main():
- support.run_unittest(__name__)
-
if __name__ == "__main__":
- test_main()
+ unittest.main()