diff --git a/tests/common/test_msgpack_packet.py b/tests/common/test_msgpack_packet.py index 1079e01..8a3befd 100644 --- a/tests/common/test_msgpack_packet.py +++ b/tests/common/test_msgpack_packet.py @@ -73,9 +73,7 @@ class TestMsgPackPacket: 'key': 'value', } p_without_default = msgpack_packet.MsgPackPacket(data=data) - with pytest.raises( - TypeError, match="can not serialize 'datetime.datetime' object" - ): + with pytest.raises(TypeError): p_without_default.encode() def test_encode_decode_with_ext_hook(self):