mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +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
|
@ -110,7 +110,7 @@ class CompilerTest(unittest.TestCase):
|
|||
|
||||
def _check_lineno(self, node):
|
||||
if not node.__class__ in NOLINENO:
|
||||
self.assertTrue(isinstance(node.lineno, int),
|
||||
self.assertIsInstance(node.lineno, int,
|
||||
"lineno=%s on %s" % (node.lineno, node.__class__))
|
||||
self.assertTrue(node.lineno > 0,
|
||||
"lineno=%s on %s" % (node.lineno, node.__class__))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue