summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli-Akber Saifee <ali@indydevs.org>2022-01-07 07:58:13 -0800
committerYuxuan 'fishy' Wang <fishywang@gmail.com>2022-01-08 00:17:27 -0800
commit9d7d627b518f84d6f7bfee76f1d7410e63c4fe7c (patch)
treeadb901ad54077aa99dad3606006d684c18f907b2
parente12fbe88e2f734cbcb010f0f820a6e43e94c8ec2 (diff)
downloadthrift-9d7d627b518f84d6f7bfee76f1d7410e63c4fe7c.tar.gz
Remove excess assertions
Asserting on trying to deserialize None, or an invalid serialized buffer result in different exceptions being raised in python2/3.
-rw-r--r--lib/py/test/thrift_TSerializer.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/py/test/thrift_TSerializer.py b/lib/py/test/thrift_TSerializer.py
index b94165483..0a66b9255 100644
--- a/lib/py/test/thrift_TSerializer.py
+++ b/lib/py/test/thrift_TSerializer.py
@@ -53,10 +53,7 @@ class TestSerializer(unittest.TestCase):
42, deserialize(Message(), serialized, factory).num
)
- self.assertRaises(EOFError, deserialize, Message(), None, factory)
self.assertRaises(EOFError, deserialize, Message(), b'', factory)
- self.assertRaises(TypeError, deserialize, Message(), "test", factory)
-
def test_TBinaryProtocol(self):
buf = TTransport.TMemoryBuffer()
@@ -64,7 +61,6 @@ class TestSerializer(unittest.TestCase):
factory = TBinaryProtocolFactory(transport)
self.verify(self.binary_serialized, factory)
-
def test_TBinaryProtocolAccelerated(self):
buf = TTransport.TMemoryBuffer()
transport = TTransport.TBufferedTransportFactory().getTransport(buf)