mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Move importlib.test.frozen.test_finder over to importlib.test.finder_tests.
This commit is contained in:
parent
1d0b43d24e
commit
d197a2b136
1 changed files with 8 additions and 5 deletions
|
@ -1,11 +1,10 @@
|
|||
from importlib import machinery
|
||||
from ..builtin import test_finder
|
||||
from .. import support
|
||||
from ... import machinery
|
||||
from .. import finder_tests
|
||||
|
||||
import unittest
|
||||
|
||||
|
||||
class FinderTests(test_finder.FinderTests):
|
||||
class FinderTests(finder_tests.FinderTests):
|
||||
|
||||
"""Test finding frozen modules."""
|
||||
|
||||
|
@ -13,7 +12,6 @@ class FinderTests(test_finder.FinderTests):
|
|||
finder = machinery.FrozenImporter
|
||||
return finder.find_module(name, path)
|
||||
|
||||
|
||||
def test_module(self):
|
||||
name = '__hello__'
|
||||
loader = self.find(name)
|
||||
|
@ -28,6 +26,11 @@ class FinderTests(test_finder.FinderTests):
|
|||
self.assert_(hasattr(loader, 'load_module'))
|
||||
|
||||
def test_package_in_package(self):
|
||||
# No frozen package within another package to test with.
|
||||
pass
|
||||
|
||||
def test_package_over_module(self):
|
||||
# No easy way to test.
|
||||
pass
|
||||
|
||||
def test_failure(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue