[Python-3000-checkins] r56314 - python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py

thomas.heller python-3000-checkins at python.org
Thu Jul 12 14:05:41 CEST 2007


Author: thomas.heller
Date: Thu Jul 12 14:05:40 2007
New Revision: 56314

Modified:
   python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py
Log:
Fix a ctypes test.

Modified: python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py
==============================================================================
--- python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py	(original)
+++ python/branches/py3k-struni/Lib/ctypes/test/test_keeprefs.py	Thu Jul 12 14:05:40 2007
@@ -14,9 +14,9 @@
         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 @@
 
         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):


More information about the Python-3000-checkins mailing list