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
4cc3eb48
Commit
4cc3eb48
authored
May 16, 2018
by
Isaiah Peng
Committed by
Berker Peksag
May 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-32384: Skip test when _testcapi isn't available (GH-4940)
parent
3055c947
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Lib/test/test_generators.py
Lib/test/test_generators.py
+7
-1
No files found.
Lib/test/test_generators.py
View file @
4cc3eb48
...
...
@@ -9,12 +9,18 @@ import inspect
from
test
import
support
_testcapi
=
support
.
import_module
(
'_testcapi'
)
try
:
import
_testcapi
except
ImportError
:
_testcapi
=
None
# This tests to make sure that if a SIGINT arrives just before we send into a
# yield from chain, the KeyboardInterrupt is raised in the innermost
# generator (see bpo-30039).
@
unittest
.
skipUnless
(
_testcapi
is
not
None
and
hasattr
(
_testcapi
,
"raise_SIGINT_then_send_None"
),
"needs _testcapi.raise_SIGINT_then_send_None"
)
class
SignalAndYieldFromTest
(
unittest
.
TestCase
):
def
generator1
(
self
):
...
...
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