Fix another test.

This commit is contained in:
Thomas Heller 2007-07-12 19:24:59 +00:00
parent 9ccf468323
commit 7a76e8f67c
1 changed files with 1 additions and 1 deletions

View 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))