cpython: 9e1d7cd15d2e (original) (raw)

--- a/Lib/importlib/test/frozen/test_loader.py +++ b/Lib/importlib/test/frozen/test_loader.py @@ -3,20 +3,21 @@ import imp import unittest from .. import abc from .. import util - +from test.support import captured_stdout class LoaderTests(abc.LoaderTests): def test_module(self):

def test_package(self):

@@ -26,9 +27,11 @@ class LoaderTests(abc.LoaderTests): self.assertEqual(attr_value, value, "for phello.%s, %r != %r" % (attr, attr_value, value))

def test_lacking_parent(self):

@@ -38,12 +41,15 @@ class LoaderTests(abc.LoaderTests): self.assertEqual(attr_value, value, "for phello.spam.%s, %r != %r" % (attr, attr_value, value))

def test_module_reuse(self):

def test_state_after_failure(self): # No way to trigger an error in a frozen module. @@ -62,10 +68,12 @@ class InspectLoaderTests(unittest.TestCa def test_get_code(self): # Make sure that the code object is good. name = 'hello'

def test_get_source(self): # Should always return None.