diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-07-27 23:36:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-07-27 23:36:41 (GMT) |
commit | 42746df17bd1f147f1bea90216ed9848efc730c8 (patch) | |
tree | c799b9f8c4392c53eb2ff6c6c5e4e0eaf43fc9fc /Lib/ctypes/test/test_objects.py | |
parent | 455f7bdc0543fa353d2666f16303b024c5e05155 (diff) | |
download | cpython-42746df17bd1f147f1bea90216ed9848efc730c8.zip cpython-42746df17bd1f147f1bea90216ed9848efc730c8.tar.gz cpython-42746df17bd1f147f1bea90216ed9848efc730c8.tar.bz2 |
Fix ctypes tests to avoid implicit bytes-unicode conversion
Diffstat (limited to 'Lib/ctypes/test/test_objects.py')
-rw-r--r-- | Lib/ctypes/test/test_objects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_objects.py b/Lib/ctypes/test/test_objects.py index 750d904..f075c20 100644 --- a/Lib/ctypes/test/test_objects.py +++ b/Lib/ctypes/test/test_objects.py @@ -20,7 +20,7 @@ None The memory block stores pointers to strings, and the strings itself assigned from Python must be kept. ->>> array[4] = 'foo bar' +>>> array[4] = b'foo bar' >>> array._objects {'4': b'foo bar'} >>> array[4] @@ -45,7 +45,7 @@ of 'x' ('_b_base_' is either None, or the root object owning the memory block): <ctypes.test.test_objects.X object at 0x...> >>> ->>> x.array[0] = 'spam spam spam' +>>> x.array[0] = b'spam spam spam' >>> x._objects {'0:2': b'spam spam spam'} >>> x.array._b_base_._objects |