summaryrefslogtreecommitdiff
path: root/Lib/test/test_ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r--Lib/test/test_ast.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
index 4e311e4473..6dca5d2e65 100644
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -150,7 +150,8 @@ class AST_Tests(unittest.TestCase):
slc = ast.parse("x[::]").body[0].value.slice
self.assertIsNone(slc.upper)
self.assertIsNone(slc.lower)
- self.assertIsNone(slc.step)
+ self.assertTrue(isinstance(slc.step, ast.Name))
+ self.assertEqual(slc.step.id, "None")
def test_from_import(self):
im = ast.parse("from . import y").body[0]