Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
069488d2
Commit
069488d2
authored
Nov 15, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack to avoid test_tempfile failures when run after test_threaded_import
(only needed on 3.1)
parent
3a72b250
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_threaded_import.py
Lib/test/test_threaded_import.py
+4
-0
No files found.
Lib/test/test_threaded_import.py
View file @
069488d2
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment