[Python-checkins] r75844 - python/trunk/Lib/test/test_file2k.py

antoine.pitrou python-checkins at python.org
Tue Oct 27 20:36:44 CET 2009


Author: antoine.pitrou
Date: Tue Oct 27 20:36:44 2009
New Revision: 75844

Log:
Suppress transient refleaks in test_file2k.



Modified:
   python/trunk/Lib/test/test_file2k.py

Modified: python/trunk/Lib/test/test_file2k.py
==============================================================================
--- python/trunk/Lib/test/test_file2k.py	(original)
+++ python/trunk/Lib/test/test_file2k.py	Tue Oct 27 20:36:44 2009
@@ -374,6 +374,7 @@
     # See #815646, #595601
 
     def setUp(self):
+        self._threads = test_support.threading_setup()
         self.f = None
         self.filename = TESTFN
         with open(self.filename, "w") as f:
@@ -392,6 +393,7 @@
             os.remove(self.filename)
         except EnvironmentError:
             pass
+        test_support.threading_cleanup(*self._threads)
 
     def _create_file(self):
         self.f = open(self.filename, "w+")


More information about the Python-checkins mailing list