Suppress transient refleaks in test_file2k.
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 @@
# 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+")