mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Fix "refleak" by restoring the tearDown method removed by accident (AFAICT)
in r62788.
This commit is contained in:
parent
bd85eb1167
commit
40388cc330
1 changed files with 1 additions and 6 deletions
|
@ -36,7 +36,7 @@ class HelperFunctionsTests(unittest.TestCase):
|
||||||
"""Save a copy of sys.path"""
|
"""Save a copy of sys.path"""
|
||||||
self.sys_path = sys.path[:]
|
self.sys_path = sys.path[:]
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
"""Restore sys.path"""
|
"""Restore sys.path"""
|
||||||
sys.path = self.sys_path
|
sys.path = self.sys_path
|
||||||
|
|
||||||
|
@ -256,13 +256,8 @@ class ImportSideEffectTests(unittest.TestCase):
|
||||||
else:
|
else:
|
||||||
self.fail("sitecustomize not imported automatically")
|
self.fail("sitecustomize not imported automatically")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
run_unittest(HelperFunctionsTests, ImportSideEffectTests)
|
run_unittest(HelperFunctionsTests, ImportSideEffectTests)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue