diff options
author | Antonio Cuni <anto.cuni@gmail.com> | 2013-10-18 17:33:54 +0200 |
---|---|---|
committer | Antonio Cuni <anto.cuni@gmail.com> | 2013-10-18 17:33:54 +0200 |
commit | 5467515065b95496b9f5b9d842ffc73c9ccb806e (patch) | |
tree | 27bfb8233e5b8aa63b76492337995578de9ab623 /test | |
parent | afa28fb2051cb00f03c83e020745e1eb238ff4ac (diff) | |
download | msgpack-python-5467515065b95496b9f5b9d842ffc73c9ccb806e.tar.gz |
implement Packer.pack_extended_type also in the cython version of the code
Diffstat (limited to 'test')
-rw-r--r-- | test/test_extension.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_extension.py b/test/test_extension.py index 1908fa2..9ec1153 100644 --- a/test/test_extension.py +++ b/test/test_extension.py @@ -6,7 +6,7 @@ def test_pack_extended_type(): def p(s): packer = msgpack.Packer() packer.pack_extended_type(0x42, s) - return packer._buffer.getvalue() + return packer.bytes() assert p('A') == '\xd4\x42A' # fixext 1 assert p('AB') == '\xd5\x42AB' # fixext 2 assert p('ABCD') == '\xd6\x42ABCD' # fixext 4 |