Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
fix tests for py3
Browse files Browse the repository at this point in the history
  • Loading branch information
emmettbutler committed Feb 28, 2018
1 parent 6d304c4 commit 50d3fca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/pykafka/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,14 +733,14 @@ def test_response(self):

def test_gzip_decompression(self):
msg = b''.join([
"\x00\x00\x00\x01\x00\ttest_gzip\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x05\x00\x00\x00\xad\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00"
"\x00\xa1S\x82\x9d\xff\x00\x01\xff\xff\xff\xff\x00\x00\x00\x93\x1f\x8b\x08\x00\x00"
"\x00\x00\x00\x00\x00c`\x80\x03\r\xbe.I\x7f0\x8b%\xb18%\rH\x8b\x95dd\x16+\x00Q\xa2"
"BIjq\x89Bnjqqbz*T=#\x10\x1b\xb2\xf3\xcb\xf4\x81y\x1c \x15\xf1\xd9\xa9\x95@\xb6"
"4\\_Nq>v\xcdL@\xac\x7f\xb5(\xd9\x98\x81\xe1?\x10\x00y\x8a`M)\xf9\xa9\xc5y\xea%\n"
"\x19\x89e\xa9@\x9d\x05\x89E%\x99%\x99\xf9y\n\x10\x93A\x80\x19\x88\xcd/\x9a<1\xc5"
"\xb0\x97h#X\xc8\xb0\x1d\x00Bj\t\\*\x01\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x01\x00\ttest_gzip\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
b"\x00\x00\x00\x00\x00\x05\x00\x00\x00\xad\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00"
b"\x00\xa1S\x82\x9d\xff\x00\x01\xff\xff\xff\xff\x00\x00\x00\x93\x1f\x8b\x08\x00\x00"
b"\x00\x00\x00\x00\x00c`\x80\x03\r\xbe.I\x7f0\x8b%\xb18%\rH\x8b\x95dd\x16+\x00Q\xa2"
b"BIjq\x89Bnjqqbz*T=#\x10\x1b\xb2\xf3\xcb\xf4\x81y\x1c \x15\xf1\xd9\xa9\x95@\xb6"
b"4\\_Nq>v\xcdL@\xac\x7f\xb5(\xd9\x98\x81\xe1?\x10\x00y\x8a`M)\xf9\xa9\xc5y\xea%\n"
b"\x19\x89e\xa9@\x9d\x05\x89E%\x99%\x99\xf9y\n\x10\x93A\x80\x19\x88\xcd/\x9a<1\xc5"
b"\xb0\x97h#X\xc8\xb0\x1d\x00Bj\t\\*\x01\x00\x00\x00\x00\x00\x00"
])
response = protocol.FetchResponse(msg)
expected_data = self._get_expected()
Expand Down

0 comments on commit 50d3fca

Please sign in to comment.