From: Neal Norwitz Date: Wed, 14 May 2008 06:47:56 +0000 (+0000) Subject: Fix "refleak" by restoring the tearDown method removed by accident (AFAICT) X-Git-Tag: v2.6b1~434 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40388cc3308e405dfb0f971eb144c7741c89868b;p=python Fix "refleak" by restoring the tearDown method removed by accident (AFAICT) in r62788. --- diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index b48f7bbb80..6adb207508 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -36,7 +36,7 @@ class HelperFunctionsTests(unittest.TestCase): """Save a copy of sys.path""" self.sys_path = sys.path[:] - + def tearDown(self): """Restore sys.path""" sys.path = self.sys_path @@ -256,13 +256,8 @@ class ImportSideEffectTests(unittest.TestCase): else: self.fail("sitecustomize not imported automatically") - - - def test_main(): run_unittest(HelperFunctionsTests, ImportSideEffectTests) - - if __name__ == "__main__": test_main()