Commit 6f75ec84 authored by Robert's avatar Robert Committed by GitHub

Merge pull request #3913 from rw/fix-pytest-binary-type

Fix test using compat.binary_types (from March).
parents 6e177bf0 fd43d370
......@@ -162,8 +162,9 @@ class TestFuzz(unittest.TestCase):
''' Low level stress/fuzz test: serialize/deserialize a variety of
different kinds of data in different combinations '''
ofInt32Bytes = compat.binary_type([0x83, 0x33, 0x33, 0x33])
ofInt64Bytes = compat.binary_type([0x84, 0x44, 0x44, 0x44,
binary_type = compat.binary_types[0] # this will always exist
ofInt32Bytes = binary_type([0x83, 0x33, 0x33, 0x33])
ofInt64Bytes = binary_type([0x84, 0x44, 0x44, 0x44,
0x44, 0x44, 0x44, 0x44])
overflowingInt32Val = flatbuffers.encode.Get(flatbuffers.packer.int32,
ofInt32Bytes, 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment