mirror of https://github.com/commaai/panda.git
fix linter complaint about too many blank lines
This commit is contained in:
parent
9102c16118
commit
275e76c2b2
|
@ -94,7 +94,6 @@ class Info():
|
|||
message.zeros[i] = message.zeros[i] | ( (~int(bytes[i])) & 0xff)
|
||||
|
||||
|
||||
|
||||
def PrintUnique(interesting_file, background_files):
|
||||
background = Info()
|
||||
for background_file in background_files:
|
||||
|
|
|
@ -180,7 +180,6 @@ class TestGmSafety(common.PandaSafetyTest):
|
|||
self.safety.set_torque_driver(-MAX_STEER * sign, -MAX_STEER * sign)
|
||||
self.assertFalse(self._tx(self._torque_msg((MAX_STEER - MAX_RATE_DOWN + 1) * sign)))
|
||||
|
||||
|
||||
def test_realtime_limits(self):
|
||||
self.safety.set_controls_allowed(True)
|
||||
|
||||
|
@ -203,7 +202,6 @@ class TestGmSafety(common.PandaSafetyTest):
|
|||
self.assertTrue(self._tx(self._torque_msg(sign * (MAX_RT_DELTA - 1))))
|
||||
self.assertTrue(self._tx(self._torque_msg(sign * (MAX_RT_DELTA + 1))))
|
||||
|
||||
|
||||
def test_tx_hook_on_pedal_pressed(self):
|
||||
for pedal in ['brake', 'gas']:
|
||||
if pedal == 'brake':
|
||||
|
|
|
@ -156,7 +156,6 @@ class TestHyundaiSafety(common.PandaSafetyTest):
|
|||
self.safety.set_torque_driver(-MAX_STEER * sign, -MAX_STEER * sign)
|
||||
self.assertFalse(self._tx(self._torque_msg((MAX_STEER - MAX_RATE_DOWN + 1) * sign)))
|
||||
|
||||
|
||||
def test_realtime_limits(self):
|
||||
self.safety.set_controls_allowed(True)
|
||||
|
||||
|
@ -179,7 +178,6 @@ class TestHyundaiSafety(common.PandaSafetyTest):
|
|||
self.assertTrue(self._tx(self._torque_msg(sign * (MAX_RT_DELTA - 1))))
|
||||
self.assertTrue(self._tx(self._torque_msg(sign * (MAX_RT_DELTA + 1))))
|
||||
|
||||
|
||||
def test_spam_cancel_safety_check(self):
|
||||
RESUME_BTN = 1
|
||||
SET_BTN = 2
|
||||
|
|
|
@ -142,7 +142,6 @@ class TestSubaruSafety(common.PandaSafetyTest):
|
|||
self._set_torque_driver(-max_driver_torque * sign, -max_driver_torque * sign)
|
||||
self.assertFalse(self._tx(self._torque_msg((MAX_STEER - MAX_RATE_DOWN + 1) * sign)))
|
||||
|
||||
|
||||
def test_realtime_limits(self):
|
||||
self.safety.set_controls_allowed(True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue