diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-03 15:14:51 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-03 15:14:51 +0000 |
commit | 6624a9fdddc3d77a426173f22ab941e8e279dec7 (patch) | |
tree | 559996f8531c3aac857bf53047791d911653901e /Lib/test | |
parent | 8928a7e911357e57b92aa1738940fec241ded28e (diff) | |
download | cpython-git-6624a9fdddc3d77a426173f22ab941e8e279dec7.tar.gz |
#4048 make the parser module accept relative imports as valid
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_parser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py index 9ecca51a36..94b6113a0c 100644 --- a/Lib/test/test_parser.py +++ b/Lib/test/test_parser.py @@ -1,4 +1,5 @@ import parser +import os import unittest import sys from test import test_support @@ -179,6 +180,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase): "from sys.path import (dirname, basename as my_basename)") self.check_suite( "from sys.path import (dirname, basename as my_basename,)") + self.check_suite("from .bogus import x") def test_basic_import_statement(self): self.check_suite("import sys") |