mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #11223: Replace threading._info() by sys.thread_info
This commit is contained in:
parent
fab6c70770
commit
d5c355ccc7
13 changed files with 119 additions and 108 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue