test fixes
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 8 Jul 2012 12:53:37 +0000 (14:53 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 8 Jul 2012 12:53:37 +0000 (14:53 +0200)
tests/run/cpp_stl_conversion.pyx

index 3c4decc..b3f01e2 100644 (file)
@@ -21,13 +21,13 @@ def normalize(bytes b):
 
 def test_string(o):
     """
-    >>> normalize(test_string(b"abc"))
+    >>> normalize(test_string("abc".encode('ascii')))
     'abc'
-    >>> normalize(test_string(b"abc\\x00def"))
+    >>> normalize(test_string("abc\\x00def".encode('ascii')))
     'abc\\x00def'
     """
     cdef string s = o
-    return o
+    return s
 
 def test_string_call(a, b):
     """