From 154fb5ee822b110ceecb8d5dd4ced7806d5b2928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20R=C4=85czy?= Date: Mon, 7 Apr 2025 15:51:33 -0700 Subject: [PATCH] Set comprehentions --- selfdrive/test/process_replay/test_log_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}