diff --git a/selfdrive/test/process_replay/test_log_compat.py b/selfdrive/test/process_replay/test_log_compat.py index d95a0cd622..1856886813 100644 --- a/selfdrive/test/process_replay/test_log_compat.py +++ b/selfdrive/test/process_replay/test_log_compat.py @@ -24,4 +24,4 @@ def test_log_backwards_compatibility(schema_path, data): lr = list(LogReader.from_bytes(dat)) assert len(lr) == len(msgs) # calling which() on a removed union type will raise an exception - assert set([m.which() for m in lr]) == set([msg.which() for msg in msgs]) + assert {m.which() for m in lr} == {msg.which() for msg in msgs}