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
1ca8794f
Commit
1ca8794f
authored
Feb 23, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17249: check for the availability of the thread module.
parent
29267c81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_capi.py
Lib/test/test_capi.py
+3
-2
No files found.
Lib/test/test_capi.py
View file @
1ca8794f
...
...
@@ -8,7 +8,6 @@ import random
import
subprocess
import
sys
import
time
import
_thread
import
unittest
from
test
import
support
try
:
...
...
@@ -16,8 +15,10 @@ try:
except
ImportError
:
_posixsubprocess
=
None
try
:
import
_thread
import
threading
except
ImportError
:
_thread
=
None
threading
=
None
import
_testcapi
...
...
@@ -223,7 +224,7 @@ class EmbeddingTest(unittest.TestCase):
os
.
chdir
(
oldcwd
)
@
unittest
.
skipUnless
(
threading
,
'Threading required for this test.'
)
@
unittest
.
skipUnless
(
threading
and
_thread
,
'Threading required for this test.'
)
class
TestThreadState
(
unittest
.
TestCase
):
@
support
.
reap_threads
...
...
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