projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d925b7a
)
test fixes
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Jul 2012 12:53:37 +0000
(14:53 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Jul 2012 12:53:37 +0000
(14:53 +0200)
tests/run/cpp_stl_conversion.pyx
patch
|
blob
|
history
diff --git
a/tests/run/cpp_stl_conversion.pyx
b/tests/run/cpp_stl_conversion.pyx
index
3c4decc
..
b3f01e2
100644
(file)
--- a/
tests/run/cpp_stl_conversion.pyx
+++ b/
tests/run/cpp_stl_conversion.pyx
@@
-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):
"""