diff Lib/test/test_future3.py @ 82409:83ae10bf608c 3.3

#17303: test_future* now work with unittest test discovery. Patch by Zachary Ware.
author Ezio Melotti <ezio.melotti@gmail.com>
date Wed, 27 Feb 2013 10:00:03 +0200
parents 9c930a32cebb
children
line wrap: on
line diff
--- a/Lib/test/test_future3.py	Tue Feb 26 22:52:11 2013 +0100
+++ b/Lib/test/test_future3.py	Wed Feb 27 10:00:03 2013 +0200
@@ -2,7 +2,6 @@
 from __future__ import division
 
 import unittest
-from test import support
 
 x = 2
 def nester():
@@ -23,8 +22,5 @@
     def test_nested_scopes(self):
         self.assertEqual(nester(), 3)
 
-def test_main():
-    support.run_unittest(TestFuture)
-
 if __name__ == "__main__":
-    test_main()
+    unittest.main()