]> granicus.if.org Git - python/commitdiff
Fix "refleak" by restoring the tearDown method removed by accident (AFAICT)
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 14 May 2008 06:47:56 +0000 (06:47 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 14 May 2008 06:47:56 +0000 (06:47 +0000)
in r62788.

Lib/test/test_site.py

index b48f7bbb80478e2b48fa2533860e449b2e20776b..6adb2075083763fa3efce3c3c6a635644fa59d53 100644 (file)
@@ -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()