linux: integration-test: drop f-string without placeholder

This commit is contained in:
Jelle van der Waa 2024-09-17 18:32:40 +02:00
parent 131ab3a9d5
commit 23cf8c19f7

View file

@ -1159,7 +1159,7 @@ class Tests(dbusmock.DBusTestCase):
def start_daemon(charge_threshold_value=None):
upower_history_dir_override = tempfile.mkdtemp(prefix='upower-history-')
if charge_threshold_value is not None:
with open(os.path.join(upower_history_dir_override, f"charging-threshold-status") , 'w') as fp:
with open(os.path.join(upower_history_dir_override, "charging-threshold-status") , 'w') as fp:
fp.write(charge_threshold_value)
self.start_daemon(history_dir_override=upower_history_dir_override)
@ -1235,7 +1235,7 @@ class Tests(dbusmock.DBusTestCase):
def start_daemon(charge_threshold_value=None):
upower_history_dir_override = tempfile.mkdtemp(prefix='upower-history-')
if charge_threshold_value is not None:
with open(os.path.join(upower_history_dir_override, f"charging-threshold-status") , 'w') as fp:
with open(os.path.join(upower_history_dir_override, "charging-threshold-status") , 'w') as fp:
fp.write(charge_threshold_value)
self.start_daemon(history_dir_override=upower_history_dir_override)