1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-23 13:51:00 +00:00

core: fix unit tests

test_protobuf.py is failing because of `del ffields` introduced by 5b6fa1136a
This commit is contained in:
Tomas Susanka 2019-08-07 10:04:37 +02:00
parent 0ac0daf148
commit e897f7cf7f

View File

@ -281,7 +281,7 @@ async def dump_message(
if isinstance(ftype, type) and issubclass(ftype, MessageType): if isinstance(ftype, type) and issubclass(ftype, MessageType):
ffields = ftype.get_fields() ffields = ftype.get_fields()
else: else:
del ffields ffields = None
for svalue in fvalue: for svalue in fvalue:
await dump_uvarint(writer, fkey) await dump_uvarint(writer, fkey)