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
b5f335bc
Commit
b5f335bc
authored
Nov 17, 2013
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip test_asyncio if concurrent.futures can't be imported. Hopeful fix for issue 19645.
parent
c5d48218
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/test/test_asyncio/__init__.py
Lib/test/test_asyncio/__init__.py
+5
-5
No files found.
Lib/test/test_asyncio/__init__.py
View file @
b5f335bc
import
os
import
sys
import
unittest
from
test.support
import
run_unittest
from
test.support
import
run_unittest
,
import_module
try
:
import
threading
except
ImportError
:
raise
unittest
.
SkipTest
(
"No module named '_thread'"
)
# Skip tests if we don't have threading.
import_module
(
'threading'
)
# Skip tests if we don't have concurrent.futures.
import_module
(
'concurrent.futures'
)
def
suite
():
...
...
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