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):
_______________________________________________
Python-3000-checkins mailing list
Python-3000-checkins@python.org
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to