]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a ctypes test.
authorThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 11:59:52 +0000 (11:59 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 11:59:52 +0000 (11:59 +0000)
Lib/ctypes/test/test_objects.py

index 500b0093b338228be31b30a91c6cf82128b18715..4c7441c2788a8663b92907cb38f2c2eb73fe7e26 100644 (file)
@@ -22,9 +22,9 @@ assigned from Python must be kept.
 
 >>> array[4] = 'foo bar'
 >>> array._objects
-{'4': 'foo bar'}
+{s'4': b'foo bar'}
 >>> array[4]
-'foo bar'
+s'foo bar'
 >>>
 
 It gets more complicated when the ctypes instance itself is contained
@@ -47,9 +47,9 @@ of 'x' ('_b_base_' is either None, or the root object owning the memory block):
 
 >>> x.array[0] = 'spam spam spam'
 >>> x._objects
-{'0:2': 'spam spam spam'}
+{s'0:2': b'spam spam spam'}
 >>> x.array._b_base_._objects
-{'0:2': 'spam spam spam'}
+{s'0:2': b'spam spam spam'}
 >>>
 
 '''