print serializers tested during tests; enforce pure Python for ubjson
This commit is contained in:
parent
12ffe8f08f
commit
53d4298d99
|
@ -148,9 +148,12 @@ class TestSerializer(unittest.TestCase):
|
|||
self.assertTrue('unicode' in msg_out.kwargs)
|
||||
|
||||
def test_roundtrip(self):
|
||||
for msg in generate_test_messages():
|
||||
for ser in self.serializers:
|
||||
msgs = generate_test_messages()
|
||||
|
||||
print("\n")
|
||||
for ser in self.serializers:
|
||||
print("Testing WAMP serializer <{}>".format(ser.SERIALIZER_ID))
|
||||
for msg in msgs:
|
||||
# serialize message
|
||||
payload, binary = ser.serialize(msg)
|
||||
|
||||
|
@ -159,6 +162,7 @@ class TestSerializer(unittest.TestCase):
|
|||
|
||||
# must be equal: message roundtrips via the serializer
|
||||
self.assertEqual([msg], msg2)
|
||||
print("")
|
||||
|
||||
def test_caching(self):
|
||||
for msg in generate_test_messages():
|
||||
|
|
1
setup.py
1
setup.py
|
@ -97,6 +97,7 @@ extras_require_compress = [
|
|||
]
|
||||
|
||||
# non-JSON WAMP serialization support (namely MsgPack, CBOR and UBJSON)
|
||||
os.environ['PYUBJSON_NO_EXTENSION'] = '1' # enforce use of pure Python py-ubjson (no Cython)
|
||||
extras_require_serialization = [
|
||||
"msgpack-python>=0.4.6", # Apache 2.0 license
|
||||
"cbor>=0.1.24", # Apache 2.0 license
|
||||
|
|
Loading…
Reference in New Issue