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

Suppress a couple more warnings.

parent 2816008b
......@@ -9,3 +9,6 @@ cdef no_semi():
cdef with_semi():
cdef int i;
def use_cdef():
&no_semi, &with_semi
......@@ -14,6 +14,7 @@ cdef double spam "c_spam" (int i, float f):
cdef double d "c_d"
cdef foo *p
global b
if i:
d = spam(a, f)
cdef foo q
q.i = 7
......
......@@ -132,18 +132,18 @@ def test_math():
assertIs(0!=1, True)
assertIs(0!=0, False)
x = [1]
assertIs(x is x, True)
assertIs(x is not x, False)
y = x = [1]
assertIs(x is y, True)
assertIs(x is not y, False)
assertIs(1 in x, True)
assertIs(0 in x, False)
assertIs(1 not in x, False)
assertIs(0 not in x, True)
x = {1: 2}
assertIs(x is x, True)
assertIs(x is not x, False)
y = x = {1: 2}
assertIs(x is y, True)
assertIs(x is not y, False)
assertIs(1 in x, True)
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