diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-30 12:53:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-30 12:53:09 (GMT) |
commit | d5c355ccc70d011ef2010537838d9a82e24b2b80 (patch) | |
tree | 93cd12a87150e673d0a8b16c04ffcaff16fea3aa /Lib/test/test_threading.py | |
parent | fab6c70770c7c895a4dbd898a963e2c52da72c04 (diff) | |
download | cpython-d5c355ccc70d011ef2010537838d9a82e24b2b80.zip cpython-d5c355ccc70d011ef2010537838d9a82e24b2b80.tar.gz cpython-d5c355ccc70d011ef2010537838d9a82e24b2b80.tar.bz2 |
Issue #11223: Replace threading._info() by sys.thread_info
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r-- | Lib/test/test_threading.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index fd63d39..66a04c8 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -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__": |