mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -68,7 +68,7 @@ class FunctionPropertiesTest(FuncAttrsTest):
|
|||
a = 12
|
||||
def f(): print a
|
||||
c = f.func_closure
|
||||
self.assertTrue(isinstance(c, tuple))
|
||||
self.assertIsInstance(c, tuple)
|
||||
self.assertEqual(len(c), 1)
|
||||
# don't have a type object handy
|
||||
self.assertEqual(c[0].__class__.__name__, "cell")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue