summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-11-03 15:14:51 +0000
committerBenjamin Peterson <benjamin@python.org>2008-11-03 15:14:51 +0000
commit6624a9fdddc3d77a426173f22ab941e8e279dec7 (patch)
tree559996f8531c3aac857bf53047791d911653901e /Lib/test
parent8928a7e911357e57b92aa1738940fec241ded28e (diff)
downloadcpython-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.py2
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")