diff options
Diffstat (limited to 'Lib/test/test_pkgimport.py')
-rw-r--r-- | Lib/test/test_pkgimport.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index 2f19509..72889f9 100644 --- a/Lib/test/test_pkgimport.py +++ b/Lib/test/test_pkgimport.py @@ -75,4 +75,10 @@ class TestImport(unittest.TestCase): reload(module) self.assertEqual(getattr(module, var), 1) -run_unittest(TestImport) + +def test_main(): + run_unittest(TestImport) + + +if __name__ == "__main__": + test_main() |