Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_contextlib.py @ 84108:05f7883ee92d
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Wed, 12 Jun 2013 21:25:59 -0400 |
| parents | 406b47c64480 |
| children | 451f5f6151f5 |
line wrap: on
line diff
--- a/Lib/test/test_contextlib.py Wed Jun 12 21:25:23 2013 -0400 +++ b/Lib/test/test_contextlib.py Wed Jun 12 21:25:59 2013 -0400 @@ -617,9 +617,5 @@ '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()
