diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-27 19:36:44 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-27 19:36:44 (GMT) |
commit | 0df2c73d6cbacc7ed7b78ea7ae049d1396066596 (patch) | |
tree | b28c6c103845c73375faf28aec1ad0da227ca49c /Lib | |
parent | e171edc832a7559e8b198700014f2ac8e69437bc (diff) | |
download | cpython-0df2c73d6cbacc7ed7b78ea7ae049d1396066596.zip cpython-0df2c73d6cbacc7ed7b78ea7ae049d1396066596.tar.gz cpython-0df2c73d6cbacc7ed7b78ea7ae049d1396066596.tar.bz2 |
Suppress transient refleaks in test_file2k.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_file2k.py | 2 |
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+") |