diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 7b43be6dfc2..e032f6d27a8 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -754,7 +754,7 @@ def test_import(self): def test_importfrom(self): imp = ast.ImportFrom(None, [ast.alias("x", None)], -42) - self.stmt(imp, "level less than -1") + self.stmt(imp, "Negative ImportFrom level") self.stmt(ast.ImportFrom(None, [], 0), "empty names on ImportFrom") def test_global(self):