Kaydet (Commit) 48006cf1 authored tarafından Ezio Melotti's avatar Ezio Melotti

Fix test.

üst a463d259
...@@ -478,7 +478,7 @@ class SysModuleTest(unittest.TestCase): ...@@ -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))
......
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