]> granicus.if.org Git - python/commitdiff
Fix another test.
authorThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 19:24:59 +0000 (19:24 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 19:24:59 +0000 (19:24 +0000)
Lib/ctypes/test/test_strings.py

index 3100b79c8c757148b74056b4a8328224198b4627..17c78a0a261ef4c68d6baaef74d9b1afc7334a79 100644 (file)
@@ -37,7 +37,7 @@ class StringArrayTestCase(unittest.TestCase):
     def test_c_buffer_raw(self):
         buf = c_buffer(32)
 
-        buf.raw = buffer("Hello, World")
+        buf.raw = buffer(b"Hello, World")
         self.failUnlessEqual(buf.value, "Hello, World")
         self.assertRaises(TypeError, setattr, buf, "value", buffer("abc"))
         self.assertRaises(ValueError, setattr, buf, "raw", buffer("x" * 100))