]> granicus.if.org Git - python/commitdiff
Fix a ctypes test.
authorThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 12:05:40 +0000 (12:05 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 12:05:40 +0000 (12:05 +0000)
Lib/ctypes/test/test_keeprefs.py

index a0eb00fa859acaa91c4372ce284e29bd07789b6a..75e227c2ef0e4ad5af61abd47a9f2d0d8e1667dd 100644 (file)
@@ -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):