From a668f22457d8cd1f6f65422a337d32d6a9fd0a22 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 7 Aug 2008 18:52:22 +0200 Subject: [PATCH] Py3 test fixes --- tests/run/builtinnames.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/run/builtinnames.pyx b/tests/run/builtinnames.pyx index 28d31357..3b8d6c8b 100644 --- a/tests/run/builtinnames.pyx +++ b/tests/run/builtinnames.pyx @@ -2,21 +2,21 @@ __doc__ = u""" >>> test_c('abc') fileabc typeabc ->>> print test_file_py('abc') +>>> print(test_file_py('abc')) abc ->>> print range('abc') +>>> print(range('abc')) rangeabc """ def test_file_py(file): assert isinstance(file, str), \ - "not a string, found '%s' instead" % file.__class__.__name__ + u"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__ + u"not a string, found '%s' instead" % file.__class__.__name__ return u'file' + file -- 2.26.2