Skip to content

Commit

Permalink
autotest: correct format string in error path
Browse files Browse the repository at this point in the history
name is a string, not an integer
  • Loading branch information
peterbarker committed Apr 14, 2024
1 parent 5a21d0c commit a067800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/autotest/vehicle_test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -13676,7 +13676,7 @@ def GPSTypes(self):
n = self.poll_home_position(timeout=120)
distance = self.get_distance_int(orig, n)
if distance > 1:
raise NotAchievedException("gps type %u misbehaving" % name)
raise NotAchievedException(f"gps type {name} misbehaving")

def assert_gps_satellite_count(self, messagename, count):
m = self.assert_receive_message(messagename)
Expand Down

0 comments on commit a067800

Please sign in to comment.