Skip to content

Commit

Permalink
Move importlib.test.frozen.test_finder over to importlib.test.finder_…
Browse files Browse the repository at this point in the history
…tests.
  • Loading branch information
brettcannon committed Jan 27, 2009
1 parent 1d0b43d commit d197a2b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Lib/importlib/test/frozen/test_finder.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
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."""

def find(self, name, path=None):
finder = machinery.FrozenImporter
return finder.find_module(name, path)


def test_module(self):
name = '__hello__'
loader = self.find(name)
Expand All @@ -28,6 +26,11 @@ def test_module_in_package(self):
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):
Expand Down

0 comments on commit d197a2b

Please sign in to comment.