mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +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
|
@ -154,7 +154,7 @@ class AST_Tests(unittest.TestCase):
|
|||
slc = ast.parse("x[::]").body[0].value.slice
|
||||
self.assertIsNone(slc.upper)
|
||||
self.assertIsNone(slc.lower)
|
||||
self.assertTrue(isinstance(slc.step, ast.Name))
|
||||
self.assertIsInstance(slc.step, ast.Name)
|
||||
self.assertEqual(slc.step.id, "None")
|
||||
|
||||
def test_from_import(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue