Commit 4bebe27e authored by Stefan Behnel's avatar Stefan Behnel

added failing test case for literal lists to make sure we fix it for 0.17

parent ae62e5ee
...@@ -10,6 +10,19 @@ import sys ...@@ -10,6 +10,19 @@ import sys
if sys.version_info[0] < 3: if sys.version_info[0] < 3:
__doc__ = __doc__.replace(u"b'", u"'") __doc__ = __doc__.replace(u"b'", u"'")
def repeated_literals():
"""
>>> repeated_literals()
p1: [4, 4]
p2: [5, 5]
"""
cdef int i
cdef int* p1 = [4, 4]
cdef int* p2 = [5, 5]
print "p1: %s" % [ p1[i] for i in range(2) ]
print "p2: %s" % [ p2[i] for i in range(2) ]
def test_ints(int x): def test_ints(int x):
""" """
>>> test_ints(100) >>> test_ints(100)
......
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