From 7a76e8f67c0866d04c7370df580bcd7b0cb42297 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Thu, 12 Jul 2007 19:24:59 +0000 Subject: Fix another test. --- Lib/ctypes/test/test_strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ctypes/test/test_strings.py b/Lib/ctypes/test/test_strings.py index 3100b79..17c78a0 100644 --- a/Lib/ctypes/test/test_strings.py +++ b/Lib/ctypes/test/test_strings.py @@ -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)) -- cgit v0.12