summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-30 23:46:54 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-11-30 23:46:54 (GMT)
commitc0abc4e3a485f9c43c1d98be29d76f1738d8bd01 (patch)
tree3aab3db4e28fd9b01e4d6921e4e3ed5e67aafdf4 /Lib/test/test_os.py
parent715f3cd10d0481a2dd8c1969c4044d068b06cfd5 (diff)
downloadcpython-c0abc4e3a485f9c43c1d98be29d76f1738d8bd01.zip
cpython-c0abc4e3a485f9c43c1d98be29d76f1738d8bd01.tar.gz
cpython-c0abc4e3a485f9c43c1d98be29d76f1738d8bd01.tar.bz2
Fix #10591. Fix test_os for refleak runs.
Split a common setUp/tearDown into the appropriate parts.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 6a70132..835e1f2 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -866,12 +866,11 @@ class LinkTests(unittest.TestCase):
self.file1 = support.TESTFN
self.file2 = os.path.join(support.TESTFN + "2")
+ def tearDown(self):
for file in (self.file1, self.file2):
if os.path.exists(file):
os.unlink(file)
- tearDown = setUp
-
def _test_link(self, file1, file2):
with open(file1, "w") as f1:
f1.write("test")