summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_file2k.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-10-27 19:36:44 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-10-27 19:36:44 (GMT)
commit0df2c73d6cbacc7ed7b78ea7ae049d1396066596 (patch)
treeb28c6c103845c73375faf28aec1ad0da227ca49c /Lib/test/test_file2k.py
parente171edc832a7559e8b198700014f2ac8e69437bc (diff)
downloadcpython-0df2c73d6cbacc7ed7b78ea7ae049d1396066596.zip
cpython-0df2c73d6cbacc7ed7b78ea7ae049d1396066596.tar.gz
cpython-0df2c73d6cbacc7ed7b78ea7ae049d1396066596.tar.bz2
Suppress transient refleaks in test_file2k.
Diffstat (limited to 'Lib/test/test_file2k.py')
-rw-r--r--Lib/test/test_file2k.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_file2k.py b/Lib/test/test_file2k.py
index 6520292..bf47c6f 100644
--- a/Lib/test/test_file2k.py
+++ b/Lib/test/test_file2k.py
@@ -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+")