diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-11-03 15:14:51 (GMT) | 
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-11-03 15:14:51 (GMT) | 
| commit | 6624a9fdddc3d77a426173f22ab941e8e279dec7 (patch) | |
| tree | 559996f8531c3aac857bf53047791d911653901e /Lib/test/test_parser.py | |
| parent | 8928a7e911357e57b92aa1738940fec241ded28e (diff) | |
| download | cpython-6624a9fdddc3d77a426173f22ab941e8e279dec7.zip cpython-6624a9fdddc3d77a426173f22ab941e8e279dec7.tar.gz cpython-6624a9fdddc3d77a426173f22ab941e8e279dec7.tar.bz2  | |
#4048 make the parser module accept relative imports as valid
Diffstat (limited to 'Lib/test/test_parser.py')
| -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 9ecca51..94b6113 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")  | 
