Commit 59cbd0ad authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fix

parent a40b2664
__doc__ = u"""
>>> print D
{'answer': (42, 42)}
>>> print(D)
{u'answer': (42, 42)}
"""
import sys
if sys.version_info[0] >= 3:
__doc__ = __doc__.replace(u"u'", u"'")
D = {}
def foo(x):
......@@ -10,4 +14,4 @@ def foo(x):
cdef class Spam:
answer = 42
D['answer'] = foo(answer)
D[u'answer'] = foo(answer)
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