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

Py3 test fix

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