summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-12 11:59:52 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-12 11:59:52 (GMT)
commit1f498ef63da4caa07a44fcc97ac66894d4d29e86 (patch)
tree3cafc2c04665879a6fd8dad010994839c243a01b /Lib
parentb0f48abd876f4484ef7c2bb0cacb78d221935db2 (diff)
downloadcpython-1f498ef63da4caa07a44fcc97ac66894d4d29e86.zip
cpython-1f498ef63da4caa07a44fcc97ac66894d4d29e86.tar.gz
cpython-1f498ef63da4caa07a44fcc97ac66894d4d29e86.tar.bz2
Fix a ctypes test.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_objects.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/ctypes/test/test_objects.py b/Lib/ctypes/test/test_objects.py
index 500b009..4c7441c 100644
--- a/Lib/ctypes/test/test_objects.py
+++ b/Lib/ctypes/test/test_objects.py
@@ -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'}
>>>
'''