mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
issue 14660: Implement PEP 420, namespace packages.
This commit is contained in:
parent
fa52cbd5e6
commit
984b11f88f
25 changed files with 4455 additions and 3412 deletions
|
@ -286,12 +286,6 @@ class ImportTests(unittest.TestCase):
|
|||
import test.support as y
|
||||
self.assertIs(y, test.support, y.__name__)
|
||||
|
||||
def test_import_initless_directory_warning(self):
|
||||
with check_warnings(('', ImportWarning)):
|
||||
# Just a random non-package directory we always expect to be
|
||||
# somewhere in sys.path...
|
||||
self.assertRaises(ImportError, __import__, "site-packages")
|
||||
|
||||
def test_import_by_filename(self):
|
||||
path = os.path.abspath(TESTFN)
|
||||
encoding = sys.getfilesystemencoding()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue