diff options
| author | INADA Naoki <songofacandy@gmail.com> | 2010-11-03 03:11:00 +0900 |
|---|---|---|
| committer | INADA Naoki <songofacandy@gmail.com> | 2010-11-03 03:11:00 +0900 |
| commit | 4688252bd41082a0dd077b150b53834c0346cdb1 (patch) | |
| tree | b02b206f878b4cdcaa2a507b9c8ce85aec93e577 /python/test/test_buffer.py | |
| parent | b1df5d3ad77187d6a2bdf67552268511808ab06b (diff) | |
| download | msgpack-python-4688252bd41082a0dd077b150b53834c0346cdb1.tar.gz | |
python: Support old buffer protocol when unpack. (experimental)
Diffstat (limited to 'python/test/test_buffer.py')
| -rw-r--r-- | python/test/test_buffer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/test/test_buffer.py b/python/test/test_buffer.py index 436b554..ce7a72d 100644 --- a/python/test/test_buffer.py +++ b/python/test/test_buffer.py @@ -7,10 +7,10 @@ from msgpack import packb, unpackb def test_unpack_buffer(): from array import array - buf = array('b') - buf.fromstring(packb(['foo', 'bar'])) + buf = array('c') + buf.fromstring(packb(('foo', 'bar'))) obj = unpackb(buf) - assert_equal(['foo', 'bar'], obj) + assert_equal(('foo', 'bar'), obj) if __name__ == '__main__': main() |
