summaryrefslogtreecommitdiff
path: root/test/test_pack.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_pack.py
parentd9ec8fc905fc9ed37c86700f794adeb883b4f5ea (diff)
downloadmsgpack-python-5569a4efcdc913d343eaff4e55c9b19fafde4268.tar.gz
s/raw_as_bytes/raw/g (#276)
fixes #273
Diffstat (limited to 'test/test_pack.py')
-rw-r--r--test/test_pack.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_pack.py b/test/test_pack.py
index 29f5887..b447f9c 100644
--- a/test/test_pack.py
+++ b/test/test_pack.py
@@ -31,11 +31,11 @@ def testPack():
def testPackUnicode():
test_data = ["", "abcd", ["defgh"], "Русский текст"]
for td in test_data:
- re = unpackb(packb(td), use_list=1, raw_as_bytes=False)
+ re = unpackb(packb(td), use_list=1, raw=False)
assert re == td
packer = Packer()
data = packer.pack(td)
- re = Unpacker(BytesIO(data), raw_as_bytes=False, use_list=1).unpack()
+ re = Unpacker(BytesIO(data), raw=False, use_list=1).unpack()
assert re == td
def testPackUTF32(): # deprecated
@@ -72,14 +72,14 @@ def testIgnoreUnicodeErrors(): # deprecated
def testStrictUnicodeUnpack():
with raises(UnicodeDecodeError):
- unpackb(packb(b'abc\xeddef'), raw_as_bytes=False, use_list=1)
+ unpackb(packb(b'abc\xeddef'), raw=False, use_list=1)
def testStrictUnicodePack(): # deprecated
with raises(UnicodeEncodeError):
packb("abc\xeddef", encoding='ascii', unicode_errors='strict')
def testIgnoreErrorsPack(): # deprecated
- re = unpackb(packb("abcФФФdef", encoding='ascii', unicode_errors='ignore'), raw_as_bytes=False, use_list=1)
+ re = unpackb(packb("abcФФФdef", encoding='ascii', unicode_errors='ignore'), raw=False, use_list=1)
assert re == "abcdef"
def testDecodeBinary():