diff options
Diffstat (limited to 'Lib/test/test_frozen.py')
-rw-r--r-- | Lib/test/test_frozen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_frozen.py b/Lib/test/test_frozen.py index 52d8f7c..3d212b9 100644 --- a/Lib/test/test_frozen.py +++ b/Lib/test/test_frozen.py @@ -21,8 +21,9 @@ class TestFrozen(unittest.TestCase): if name in sys.modules: del sys.modules[name] with import_helper.frozen_modules(): - with captured_stdout() as out: - import __hello__ + import __hello__ + with captured_stdout() as out: + __hello__.main() self.assertEqual(out.getvalue(), 'Hello world!\n') |