Skip to content

Commit 7a1d6a6

Browse files
committed
use unittest
1 parent ff08388 commit 7a1d6a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

selfdrive/car/tests/test_fw_fingerprint.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import time
55
import unittest
66
from collections import defaultdict
7-
from unittest import mock
87
from parameterized import parameterized
98
import threading
109

@@ -197,7 +196,7 @@ def fake_get_data(self, timeout):
197196
return {}
198197

199198
def _benchmark_brand(self, brand, num_pandas):
200-
query_patch = mock.patch("openpilot.selfdrive.car.isotp_parallel_query.IsoTpParallelQuery.get_data", self.fake_get_data)
199+
query_patch = unittest.mock.patch("openpilot.selfdrive.car.isotp_parallel_query.IsoTpParallelQuery.get_data", self.fake_get_data)
201200
query_patch.start()
202201

203202
fake_socket = FakeSocket()

0 commit comments

Comments
 (0)