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
Kirill Smelkov
cython
Commits
76a51a3f
Commit
76a51a3f
authored
6 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid ambiguous error return value in tests.
parent
605cc214
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tests/run/nogil.pyx
tests/run/nogil.pyx
+2
-2
tests/run/sequential_parallel.pyx
tests/run/sequential_parallel.pyx
+1
-1
No files found.
tests/run/nogil.pyx
View file @
76a51a3f
...
...
@@ -28,10 +28,10 @@ cdef int g(int x) nogil:
y
=
x
+
42
return
y
cdef
int
with_gil_func
()
except
0
with
gil
:
cdef
int
with_gil_func
()
except
-
1
with
gil
:
raise
Exception
(
"error!"
)
cdef
int
nogil_func
()
nogil
except
0
:
cdef
int
nogil_func
()
nogil
except
-
1
:
with_gil_func
()
def
test_nogil_exception_propagation
():
...
...
This diff is collapsed.
Click to expand it.
tests/run/sequential_parallel.pyx
View file @
76a51a3f
...
...
@@ -660,7 +660,7 @@ def outer_parallel_section():
sum
+=
inner_parallel_section
()
return
sum
cdef
int
nogil_cdef_except_clause
()
nogil
except
0
:
cdef
int
nogil_cdef_except_clause
()
nogil
except
-
1
:
return
1
cdef
void
nogil_cdef_except_star
()
nogil
except
*
:
...
...
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