[Python-checkins] r86906 - python/branches/py3k/Lib/test/test_os.py

brian.curtin python-checkins at python.org
Wed Dec 1 00:46:54 CET 2010


Author: brian.curtin
Date: Wed Dec  1 00:46:54 2010
New Revision: 86906

Log:
Fix #10591. Fix test_os for refleak runs.
Split a common setUp/tearDown into the appropriate parts.


Modified:
   python/branches/py3k/Lib/test/test_os.py

Modified: python/branches/py3k/Lib/test/test_os.py
==============================================================================
--- python/branches/py3k/Lib/test/test_os.py	(original)
+++ python/branches/py3k/Lib/test/test_os.py	Wed Dec  1 00:46:54 2010
@@ -866,12 +866,11 @@
         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")


More information about the Python-checkins mailing list