Commit 61dd2d7e authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 810ba88a
__doc__ = u"""
>>> test_c(u'abc')
>>> test_c('abc')
fileabc
typeabc
>>> print test_file_py(u'abc')
>>> print test_file_py('abc')
abc
>>> print range(u'abc')
>>> print range('abc')
rangeabc
"""
def test_file_py(file):
assert isinstance(file, str), \
"not a string, found '%s' instead" % file.__class__.__name__
return file
cdef test_file_c(file):
assert isinstance(file, str), \
"not a string, found '%s' instead" % file.__class__.__name__
return u'file' + file
......
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