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
ee68604e
Commit
ee68604e
authored
Dec 11, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix C compiler warnings about unused variables in tests
parent
56ab62c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
tests/run/cython3.pyx
tests/run/cython3.pyx
+2
-0
tests/run/tryexcept.pyx
tests/run/tryexcept.pyx
+16
-0
No files found.
tests/run/cython3.pyx
View file @
ee68604e
...
...
@@ -67,6 +67,8 @@ def except_as_no_raise_does_not_touch_target(a):
>>> except_as_no_raise_does_not_touch_target(TypeError)
(1, 1)
"""
d
=
a
# mark used
b
=
1
try
:
i
=
1
...
...
tests/run/tryexcept.pyx
View file @
ee68604e
...
...
@@ -63,6 +63,8 @@ def double_except_no_raise(a,b):
>>> double_except_no_raise(TypeError, ValueError)
1
"""
d
=
a
or
b
# mark used
cdef
int
i
try
:
i
=
1
...
...
@@ -99,6 +101,8 @@ def target_except_no_raise(a):
>>> target_except_no_raise(TypeError)
1
"""
d
=
a
# mark used
cdef
int
i
try
:
i
=
1
...
...
@@ -156,6 +160,8 @@ def normal_and_bare_except_no_raise(a):
>>> normal_and_bare_except_no_raise(TypeError)
1
"""
d
=
a
# mark used
cdef
int
i
try
:
i
=
1
...
...
@@ -195,6 +201,8 @@ def tuple_except_index_target_no_raise(a, b, c):
>>> l
[None, None]
"""
d
=
a
or
b
or
c
# mark used
cdef
int
i
try
:
i
=
1
...
...
@@ -275,6 +283,8 @@ def bare_except_reraise_no_raise(l):
>>> l
[None]
"""
d
=
l
# mark used
cdef
int
i
try
:
i
=
1
...
...
@@ -316,6 +326,8 @@ def except_as_no_raise(a):
>>> except_as_no_raise(TypeError)
1
"""
d
=
a
# mark used
try
:
i
=
1
except
a
as
b
:
...
...
@@ -351,6 +363,8 @@ def except_as_no_raise_does_not_touch_target(a):
>>> b
1
"""
d
=
a
# mark used
b
=
1
try
:
i
=
1
...
...
@@ -411,6 +425,8 @@ def complete_except_as_no_raise(a, b):
>>> complete_except_as_no_raise(TypeError, ValueError)
5
"""
d
=
a
or
b
# mark used
try
:
i
=
1
except
(
a
,
b
)
as
c
:
...
...
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