Suppress transient refleaks in test_file2k.

This commit is contained in:
Antoine Pitrou 2009-10-27 19:36:44 +00:00
parent e171edc832
commit 0df2c73d6c
1 changed files with 2 additions and 0 deletions

View File

@ -374,6 +374,7 @@ class FileThreadingTests(unittest.TestCase):
# 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 @@ class FileThreadingTests(unittest.TestCase):
os.remove(self.filename)
except EnvironmentError:
pass
test_support.threading_cleanup(*self._threads)
def _create_file(self):
self.f = open(self.filename, "w+")