From: Antoine Pitrou Date: Tue, 27 Oct 2009 19:36:44 +0000 (+0000) Subject: Suppress transient refleaks in test_file2k. X-Git-Tag: v2.7a1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df2c73d6cbacc7ed7b78ea7ae049d1396066596;p=thirdparty%2FPython%2Fcpython.git Suppress transient refleaks in test_file2k. --- diff --git a/Lib/test/test_file2k.py b/Lib/test/test_file2k.py index 6520292251dd..bf47c6fa4592 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+")