mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix another test.
This commit is contained in:
parent
9ccf468323
commit
7a76e8f67c
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue