Commit 5c25b01d authored by Robert Bradshaw's avatar Robert Bradshaw

Suppress a couple more warnings.

parent 2816008b
...@@ -9,3 +9,6 @@ cdef no_semi(): ...@@ -9,3 +9,6 @@ cdef no_semi():
cdef with_semi(): cdef with_semi():
cdef int i; cdef int i;
def use_cdef():
&no_semi, &with_semi
...@@ -14,7 +14,8 @@ cdef double spam "c_spam" (int i, float f): ...@@ -14,7 +14,8 @@ cdef double spam "c_spam" (int i, float f):
cdef double d "c_d" cdef double d "c_d"
cdef foo *p cdef foo *p
global b global b
d = spam(a, f) if i:
d = spam(a, f)
cdef foo q cdef foo q
q.i = 7 q.i = 7
p = &q p = &q
......
...@@ -132,18 +132,18 @@ def test_math(): ...@@ -132,18 +132,18 @@ def test_math():
assertIs(0!=1, True) assertIs(0!=1, True)
assertIs(0!=0, False) assertIs(0!=0, False)
x = [1] y = x = [1]
assertIs(x is x, True) assertIs(x is y, True)
assertIs(x is not x, False) assertIs(x is not y, False)
assertIs(1 in x, True) assertIs(1 in x, True)
assertIs(0 in x, False) assertIs(0 in x, False)
assertIs(1 not in x, False) assertIs(1 not in x, False)
assertIs(0 not in x, True) assertIs(0 not in x, True)
x = {1: 2} y = x = {1: 2}
assertIs(x is x, True) assertIs(x is y, True)
assertIs(x is not x, False) assertIs(x is not y, False)
assertIs(1 in x, True) assertIs(1 in x, True)
assertIs(0 in x, False) assertIs(0 in x, False)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment