summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-05-14 06:47:56 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-05-14 06:47:56 (GMT)
commit40388cc3308e405dfb0f971eb144c7741c89868b (patch)
treed33986179e336a969a1cea6bf41b899548cf4749 /Lib/test/test_site.py
parentbd85eb11674fabe3710d44b4f51cb59ab9c3cd4b (diff)
downloadcpython-40388cc3308e405dfb0f971eb144c7741c89868b.zip
cpython-40388cc3308e405dfb0f971eb144c7741c89868b.tar.gz
cpython-40388cc3308e405dfb0f971eb144c7741c89868b.tar.bz2
Fix "refleak" by restoring the tearDown method removed by accident (AFAICT)
in r62788.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index b48f7bb..6adb207 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()