mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Fix test.
This commit is contained in:
parent
a463d25930
commit
48006cf1a8
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ class SysModuleTest(unittest.TestCase):
|
||||||
'Threading required for this test.')
|
'Threading required for this test.')
|
||||||
def test_thread_info(self):
|
def test_thread_info(self):
|
||||||
info = sys.thread_info
|
info = sys.thread_info
|
||||||
self.assertTrue(len(info), 3)
|
self.assertEqual(len(info), 3)
|
||||||
self.assertIn(info.name, ('nt', 'os2', 'pthread', 'solaris', None))
|
self.assertIn(info.name, ('nt', 'os2', 'pthread', 'solaris', None))
|
||||||
self.assertIn(info.lock, ('semaphore', 'mutex+cond', None))
|
self.assertIn(info.lock, ('semaphore', 'mutex+cond', None))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue