mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
#17303: test_future* now work with unittest test discovery. Patch by Zachary Ware.
This commit is contained in:
parent
c472c5d7bd
commit
1ed6be3793
5 changed files with 18 additions and 25 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue