Commit 069488d2 authored by Antoine Pitrou's avatar Antoine Pitrou

Hack to avoid test_tempfile failures when run after test_threaded_import

(only needed on 3.1)
parent 3a72b250
......@@ -10,6 +10,10 @@ import imp
import sys
import time
import shutil
# HACK: preloading tempfile is necessary to avoid failures when test_tempfile
# is run after test_threaded_import. This has to do with dark secrets of
# the import machinery and phantom copies of the random module.
import tempfile
import unittest
from test.support import verbose, import_module, run_unittest, TESTFN
thread = import_module('_thread')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment