summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_future3.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_future3.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_future3.py')
-rw-r--r--Lib/test/test_future3.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_future3.py b/Lib/test/test_future3.py
index b1552a5..09f1c78 100644
--- a/Lib/test/test_future3.py
+++ b/Lib/test/test_future3.py
@@ -2,7 +2,6 @@ from __future__ import nested_scopes
from __future__ import division
import unittest
-from test import support
x = 2
def nester():
@@ -23,8 +22,5 @@ class TestFuture(unittest.TestCase):
def test_nested_scopes(self):
self.assertEqual(nester(), 3)
-def test_main():
- support.run_unittest(TestFuture)
-
if __name__ == "__main__":
- test_main()
+ unittest.main()