diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-11-03 15:19:35 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-11-03 15:19:35 (GMT) |
| commit | 6f08e85ad97fc99dde46848167fa3310c4275c32 (patch) | |
| tree | 2ab79dc61d2d66da28f939237ec7beada2705f44 /Lib/test/test_parser.py | |
| parent | 3b335ff3402b1263e3fbf50ef6ba6e8cf2de1624 (diff) | |
| download | cpython-6f08e85ad97fc99dde46848167fa3310c4275c32.zip cpython-6f08e85ad97fc99dde46848167fa3310c4275c32.tar.gz cpython-6f08e85ad97fc99dde46848167fa3310c4275c32.tar.bz2 | |
backport r67077 from the trunk: parser module now correctly validates relative imports
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 8aa1657..d76db6c 100644 --- a/Lib/test/test_parser.py +++ b/Lib/test/test_parser.py @@ -1,4 +1,5 @@ import parser +import os import unittest from test import test_support @@ -168,6 +169,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") |
