summaryrefslogtreecommitdiff
path: root/test/test_stricttype.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-12 19:22:36 +0900
committerGitHub <noreply@github.com>2018-01-12 19:22:36 +0900
commit5569a4efcdc913d343eaff4e55c9b19fafde4268 (patch)
tree0c05339319e6f63d06eec2056fa23ccd0d8a3050 /test/test_stricttype.py
parentd9ec8fc905fc9ed37c86700f794adeb883b4f5ea (diff)
downloadmsgpack-python-5569a4efcdc913d343eaff4e55c9b19fafde4268.tar.gz
s/raw_as_bytes/raw/g (#276)
fixes #273
Diffstat (limited to 'test/test_stricttype.py')
-rw-r--r--test/test_stricttype.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_stricttype.py b/test/test_stricttype.py
index 13239f1..87e7c1c 100644
--- a/test/test_stricttype.py
+++ b/test/test_stricttype.py
@@ -11,7 +11,7 @@ def test_namedtuple():
return dict(o._asdict())
raise TypeError('Unsupported type %s' % (type(o),))
packed = packb(T(1, 42), strict_types=True, use_bin_type=True, default=default)
- unpacked = unpackb(packed, raw_as_bytes=False)
+ unpacked = unpackb(packed, raw=False)
assert unpacked == {'foo': 1, 'bar': 42}
@@ -32,7 +32,7 @@ def test_tuple():
return o
data = packb(t, strict_types=True, use_bin_type=True, default=default)
- expected = unpackb(data, raw_as_bytes=False, object_hook=convert)
+ expected = unpackb(data, raw=False, object_hook=convert)
assert expected == t
@@ -53,10 +53,10 @@ def test_tuple_ext():
def convert(code, payload):
if code == MSGPACK_EXT_TYPE_TUPLE:
# Unpack and convert to tuple
- return tuple(unpackb(payload, raw_as_bytes=False, ext_hook=convert))
+ return tuple(unpackb(payload, raw=False, ext_hook=convert))
raise ValueError('Unknown Ext code {}'.format(code))
data = packb(t, strict_types=True, use_bin_type=True, default=default)
- expected = unpackb(data, raw_as_bytes=False, ext_hook=convert)
+ expected = unpackb(data, raw=False, ext_hook=convert)
assert expected == t