mirror of
https://github.com/python/cpython.git
synced 2025-08-15 22:30:42 +00:00
Merged revisions 67077 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r67077 | benjamin.peterson | 2008-11-03 09:14:51 -0600 (Mon, 03 Nov 2008) | 1 line #4048 make the parser module accept relative imports as valid ........
This commit is contained in:
parent
084ce7a5dc
commit
eeed0c7822
4 changed files with 7 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue