From 61dd2d7e95c070fa0ce88fe11b7d8bc247302e9a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 7 Aug 2008 18:34:58 +0200 Subject: [PATCH] extended test case --- tests/run/builtinnames.pyx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/run/builtinnames.pyx b/tests/run/builtinnames.pyx index ca41bbce..28d31357 100644 --- a/tests/run/builtinnames.pyx +++ b/tests/run/builtinnames.pyx @@ -1,18 +1,22 @@ __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 -- 2.26.2