mirror of
https://github.com/python/cpython.git
synced 2025-11-02 06:31:29 +00:00
#4048 make the parser module accept relative imports as valid
This commit is contained in:
parent
8928a7e911
commit
6624a9fddd
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 @@ def test_import_from_statement(self):
|
|||
"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