Commit 7c1ebe33 authored by Thomas Heller's avatar Thomas Heller

Fix a ctypes test.

parent 1f498ef6
...@@ -14,9 +14,9 @@ class SimpleTestCase(unittest.TestCase): ...@@ -14,9 +14,9 @@ class SimpleTestCase(unittest.TestCase):
x = c_char_p() x = c_char_p()
self.assertEquals(x._objects, None) self.assertEquals(x._objects, None)
x.value = "abc" x.value = "abc"
self.assertEquals(x._objects, "abc") self.assertEquals(x._objects, b"abc")
x = c_char_p("spam") x = c_char_p("spam")
self.assertEquals(x._objects, "spam") self.assertEquals(x._objects, b"spam")
class StructureTestCase(unittest.TestCase): class StructureTestCase(unittest.TestCase):
def test_cint_struct(self): def test_cint_struct(self):
...@@ -39,7 +39,7 @@ class StructureTestCase(unittest.TestCase): ...@@ -39,7 +39,7 @@ class StructureTestCase(unittest.TestCase):
x.a = "spam" x.a = "spam"
x.b = "foo" 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): def test_struct_struct(self):
class POINT(Structure): class POINT(Structure):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment