Issue #19596: Set untestable tests in test_importlib to None

to avoid reporting success on empty tests.
This commit is contained in:
Zachary Ware 2013-11-18 21:44:38 -06:00
parent 30d8e167ff
commit 4accf45f0e
7 changed files with 29 additions and 55 deletions

View file

@ -65,9 +65,8 @@ class LoaderTests(abc.LoaderTests):
self.assertEqual(repr(module),
"<module '__hello__' (frozen)>")
def test_state_after_failure(self):
# No way to trigger an error in a frozen module.
pass
# No way to trigger an error in a frozen module.
test_state_after_failure = None
def test_unloadable(self):
assert machinery.FrozenImporter.find_module('_not_real') is None