Skip to content
Snippets Groups Projects
Commit 3d78f749cb97 authored by Seyf SV's avatar Seyf SV
Browse files

GH #174 Fix tests for python 2.7

parent 41a73ddd3209
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@
import pymqi
class TestGet(Tests):
"""Test Qeueu.get() method."""
......@@ -151,4 +150,5 @@
def test_get_nontruncated_big_msg(self):
"""Test get nontruncated big message"""
md_put = pymqi.MD()
if version_info.major >= 3:
self.queue.put(bytes(4097), md_put)
......@@ -154,4 +154,6 @@
self.queue.put(bytes(4097), md_put)
else:
self.queue.put(bytes(b'\0'*4097), md_put)
md_get = pymqi.MD()
message = self.queue.get(None, md_get)
......@@ -162,4 +164,5 @@
def test_get_truncated_big_msg(self):
"""Test get nontruncated big message"""
md_put = pymqi.MD()
if version_info.major >= 3:
self.queue.put(bytes(4097), md_put)
......@@ -165,5 +168,6 @@
self.queue.put(bytes(4097), md_put)
else:
self.queue.put(bytes(b'\0'*4097), md_put)
gmo = pymqi.GMO()
gmo.Options = pymqi.CMQC.MQGMO_ACCEPT_TRUNCATED_MSG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment