summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-12 12:05:40 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-12 12:05:40 (GMT)
commit7c1ebe33b89b5bbe6763c8be5333bb868a6711de (patch)
tree91a7a72e04a362b8bd62a081b12b556b1cf4e9a8 /Lib
parent1f498ef63da4caa07a44fcc97ac66894d4d29e86 (diff)
downloadcpython-7c1ebe33b89b5bbe6763c8be5333bb868a6711de.zip
cpython-7c1ebe33b89b5bbe6763c8be5333bb868a6711de.tar.gz
cpython-7c1ebe33b89b5bbe6763c8be5333bb868a6711de.tar.bz2
Fix a ctypes test.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_keeprefs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ctypes/test/test_keeprefs.py b/Lib/ctypes/test/test_keeprefs.py
index a0eb00f..75e227c 100644
--- a/Lib/ctypes/test/test_keeprefs.py
+++ b/Lib/ctypes/test/test_keeprefs.py
@@ -14,9 +14,9 @@ class SimpleTestCase(unittest.TestCase):
x = c_char_p()
self.assertEquals(x._objects, None)
x.value = "abc"
- self.assertEquals(x._objects, "abc")
+ self.assertEquals(x._objects, b"abc")
x = c_char_p("spam")
- self.assertEquals(x._objects, "spam")
+ self.assertEquals(x._objects, b"spam")
class StructureTestCase(unittest.TestCase):
def test_cint_struct(self):
@@ -39,7 +39,7 @@ class StructureTestCase(unittest.TestCase):
x.a = "spam"
x.b = "foo"
- self.assertEquals(x._objects, {"0": "spam", "1": "foo"})
+ self.assertEquals(x._objects, {"0": b"spam", "1": b"foo"})
def test_struct_struct(self):
class POINT(Structure):