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

Fix another test.

parent 9ccf4683
......@@ -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))
......
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