mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merge 3.4
This commit is contained in:
commit
d577cea8ab
7 changed files with 20 additions and 12 deletions
|
@ -13,7 +13,8 @@ import time
|
|||
import shutil
|
||||
import unittest
|
||||
from test.support import (
|
||||
verbose, import_module, run_unittest, TESTFN, reap_threads, forget, unlink)
|
||||
verbose, import_module, run_unittest, TESTFN, reap_threads,
|
||||
forget, unlink, rmtree)
|
||||
threading = import_module('threading')
|
||||
|
||||
def task(N, done, done_tasks, errors):
|
||||
|
@ -228,6 +229,7 @@ class ThreadedImportTests(unittest.TestCase):
|
|||
f.write(code.encode('utf-8'))
|
||||
self.addCleanup(unlink, filename)
|
||||
self.addCleanup(forget, TESTFN)
|
||||
self.addCleanup(rmtree, '__pycache__')
|
||||
importlib.invalidate_caches()
|
||||
__import__(TESTFN)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue