mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
use assert[Not]IsInstance where appropriate
This commit is contained in:
parent
f14c7fc33d
commit
b0f5adc3f4
57 changed files with 269 additions and 272 deletions
|
@ -64,7 +64,7 @@ class OpcodeTest(unittest.TestCase):
|
|||
|
||||
try: raise DClass, a
|
||||
except DClass, v:
|
||||
self.assertTrue(isinstance(v, DClass))
|
||||
self.assertIsInstance(v, DClass)
|
||||
else:
|
||||
self.fail("no exception")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue