Replace skip skipTest in tests

According the documentation of [unittest](), there is no skip method in
class TestCase. The intended behaviour must be achieved with
[skipTest](https://docs.python.org/2/library/unittest.html#unittest.TestCase.skipTest)
This commit is contained in:
Julien Enselme
2015-07-19 17:06:21 +02:00
parent 3bcbc00382
commit ed290f3419

View File

@@ -110,7 +110,7 @@ class TestSerializer(unittest.TestCase):
"""
if not hasattr(serializer, 'MsgPackSerializer'):
self.skip("no msgpack")
self.skipTest("no msgpack")
ser = serializer.MsgPackSerializer()
payload = b'\x960\xce\x00\x01\xe2@\x80\xb4com.myapp.procedure1\x90\x82\xc4\x03str*\xa7unicode\x17'
@@ -128,7 +128,7 @@ class TestSerializer(unittest.TestCase):
`use_bin_type=True`
"""
if not hasattr(serializer, 'MsgPackSerializer'):
self.skip("no msgpack")
self.skipTest("no msgpack")
ser = serializer.MsgPackSerializer(batched=True)
payload = b'\x00\x00\x00-\x960\xce\x00\x01\xe2@\x80\xb4com.myapp.procedure1\x90\x82\xa7unicode\x17\xa3str*'