summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_future5.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-02-27 08:00:03 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-02-27 08:00:03 (GMT)
commit1ed6be3793cf7e0964a8c345967064e915e13b78 (patch)
tree16d7162f231586021a0f651bdfba95a1da5a2256 /Lib/test/test_future5.py
parentc472c5d7bd2e2b347af650cf448bad71e33aa317 (diff)
downloadcpython-1ed6be3793cf7e0964a8c345967064e915e13b78.zip
cpython-1ed6be3793cf7e0964a8c345967064e915e13b78.tar.gz
cpython-1ed6be3793cf7e0964a8c345967064e915e13b78.tar.bz2
#17303: test_future* now work with unittest test discovery. Patch by Zachary Ware.
Diffstat (limited to 'Lib/test/test_future5.py')
-rw-r--r--Lib/test/test_future5.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_future5.py b/Lib/test/test_future5.py
index ed03a07..b44b97e 100644
--- a/Lib/test/test_future5.py
+++ b/Lib/test/test_future5.py
@@ -17,5 +17,5 @@ class TestMultipleFeatures(unittest.TestCase):
self.assertEqual(s.getvalue(), "foo\n")
-def test_main():
- support.run_unittest(TestMultipleFeatures)
+if __name__ == '__main__':
+ unittest.main()