diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-24 16:58:36 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-01-24 16:58:36 (GMT) |
| commit | b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab (patch) | |
| tree | e2936db9f8e1194464aeb7e9546d5a892f7239c7 /Lib/test/test_dummy_thread.py | |
| parent | f14c7fc33da8ba3aa28bbb7b0305ea12ab30be09 (diff) | |
| download | cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.zip cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.gz cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.bz2 | |
use assert[Not]IsInstance where appropriate
Diffstat (limited to 'Lib/test/test_dummy_thread.py')
| -rw-r--r-- | Lib/test/test_dummy_thread.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_dummy_thread.py b/Lib/test/test_dummy_thread.py index 74de86a..d9bdd3c 100644 --- a/Lib/test/test_dummy_thread.py +++ b/Lib/test/test_dummy_thread.py @@ -92,16 +92,16 @@ class MiscTests(unittest.TestCase): def test_ident(self): #Test sanity of _thread.get_ident() - self.assertTrue(isinstance(_thread.get_ident(), int), - "_thread.get_ident() returned a non-integer") + self.assertIsInstance(_thread.get_ident(), int, + "_thread.get_ident() returned a non-integer") self.assertTrue(_thread.get_ident() != 0, "_thread.get_ident() returned 0") def test_LockType(self): #Make sure _thread.LockType is the same type as _thread.allocate_locke() - self.assertTrue(isinstance(_thread.allocate_lock(), _thread.LockType), - "_thread.LockType is not an instance of what is " - "returned by _thread.allocate_lock()") + self.assertIsInstance(_thread.allocate_lock(), _thread.LockType, + "_thread.LockType is not an instance of what " + "is returned by _thread.allocate_lock()") def test_interrupt_main(self): #Calling start_new_thread with a function that executes interrupt_main |
