[Python-checkins] r63220 - python/trunk/Lib/test/test_site.py
neal.norwitz
python-checkins at python.org
Wed May 14 08:47:56 CEST 2008
Author: neal.norwitz
Date: Wed May 14 08:47:56 2008
New Revision: 63220
Log:
Fix "refleak" by restoring the tearDown method removed by accident (AFAICT)
in r62788.
Modified:
python/trunk/Lib/test/test_site.py
Modified: python/trunk/Lib/test/test_site.py
==============================================================================
--- python/trunk/Lib/test/test_site.py (original)
+++ python/trunk/Lib/test/test_site.py Wed May 14 08:47:56 2008
@@ -36,7 +36,7 @@
"""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 @@
else:
self.fail("sitecustomize not imported automatically")
-
-
-
def test_main():
run_unittest(HelperFunctionsTests, ImportSideEffectTests)
-
-
if __name__ == "__main__":
test_main()
More information about the Python-checkins
mailing list