Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
f8e58c5e
Commit
f8e58c5e
authored
5 years ago
by
Noam Hershtig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test conditional GILStatNode with compile-time constant as condition
parent
412b232e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tests/run/nogil_conditional.pyx
tests/run/nogil_conditional.pyx
+6
-2
No files found.
tests/run/nogil_conditional.pyx
View file @
f8e58c5e
...
...
@@ -96,6 +96,10 @@ def test_nested():
return
res
DEF
FREE_GIL
=
True
DEF
FREE_GIL_FALSE
=
False
def
test_nested_condition_false
():
"""
>>> test_nested_condition_false()
...
...
@@ -103,12 +107,12 @@ def test_nested_condition_false():
"""
cdef
int
res
=
0
with
gil
(
F
alse
):
with
gil
(
F
REE_GIL_FALSE
):
res
=
f_gil
(
res
)
with
nogil
(
False
):
res
=
f_gil
(
res
)
with
nogil
(
True
):
with
nogil
(
FREE_GIL
):
res
=
f_nogil
(
res
)
with
gil
(
False
):
res
=
f_nogil
(
res
)
...
...
This diff is collapsed.
Click to expand it.
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