Py3 test fixes
authorStefan Behnel <scoder@users.berlios.de>
Thu, 7 Aug 2008 16:52:22 +0000 (18:52 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 7 Aug 2008 16:52:22 +0000 (18:52 +0200)
tests/run/builtinnames.pyx

index 28d3135791d3f096b8fc437a95477bf2aecbc6de..3b8d6c8b23b49e26051bde3f080e0c3ab1afd1dd 100644 (file)
@@ -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