Issue #11223: Replace threading._info() by sys.thread_info

This commit is contained in:
Victor Stinner 2011-04-30 14:53:09 +02:00
parent fab6c70770
commit d5c355ccc7
13 changed files with 119 additions and 108 deletions

View file

@ -719,16 +719,6 @@ class BarrierTests(lock_tests.BarrierTests):
barriertype = staticmethod(threading.Barrier)
class MiscTests(unittest.TestCase):
def test_info(self):
info = threading._info()
self.assertIn(info['name'],
'nt os2 pthread solaris'.split())
if info['name'] == 'pthread':
self.assertIn(info['lock_implementation'],
('semaphore', 'mutex+cond'))
def test_main():
test.support.run_unittest(LockTests, PyRLockTests, CRLockTests, EventTests,
ConditionAsRLockTests, ConditionTests,
@ -736,7 +726,7 @@ def test_main():
ThreadTests,
ThreadJoinOnShutdown,
ThreadingExceptionTests,
BarrierTests, MiscTests,
BarrierTests,
)
if __name__ == "__main__":