Commit 577ba7d4 authored by Antoine Pitrou's avatar Antoine Pitrou

That test was never run (since thread has been renamed to _thread in 3.x)

parent c4e69cc1
...@@ -137,20 +137,14 @@ def test_main(): ...@@ -137,20 +137,14 @@ def test_main():
suite.addTest(unittest.makeSuite(ThreadLocalTest)) suite.addTest(unittest.makeSuite(ThreadLocalTest))
suite.addTest(unittest.makeSuite(PyThreadingLocalTest)) suite.addTest(unittest.makeSuite(PyThreadingLocalTest))
try: local_orig = _threading_local.local
from thread import _local def setUp(test):
except ImportError: _threading_local.local = _thread._local
pass def tearDown(test):
else: _threading_local.local = local_orig
import _threading_local suite.addTest(DocTestSuite('_threading_local',
local_orig = _threading_local.local setUp=setUp, tearDown=tearDown)
def setUp(test): )
_threading_local.local = _local
def tearDown(test):
_threading_local.local = local_orig
suite.addTest(DocTestSuite('_threading_local',
setUp=setUp, tearDown=tearDown)
)
support.run_unittest(suite) support.run_unittest(suite)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment