mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00: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 @@ def test_c_buffer_value(self):
|
|||
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