[Python-checkins] cpython (3.3): Use unittest.main() in 3.3 and greater
frank.wierzbicki
python-checkins at python.org
Wed Jan 16 23:11:40 CET 2013
http://hg.python.org/cpython/rev/489f4e716b4b
changeset: 81550:489f4e716b4b
branch: 3.3
parent: 81548:8ab5bd5f95b3
user: Frank Wierzbicki <fwierzbicki at gmail.com>
date: Wed Jan 16 14:09:57 2013 -0800
summary:
Use unittest.main() in 3.3 and greater
files:
Lib/test/test_dictcomps.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/Lib/test/test_dictcomps.py b/Lib/test/test_dictcomps.py
--- a/Lib/test/test_dictcomps.py
+++ b/Lib/test/test_dictcomps.py
@@ -84,8 +84,5 @@
"exec")
-def test_main():
- support.run_unittest(__name__)
-
if __name__ == "__main__":
- test_main()
+ unittest.main()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list