Skip to content

Commit

Permalink
test: use f-strings in getting started example test
Browse files Browse the repository at this point in the history
  • Loading branch information
flxst committed Aug 15, 2024
1 parent ecb277c commit 33c88c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def check_existence_and_clear_getting_started_example_output(
os.remove(output_file_path)
print(f"> removed {output_file_path}")
except OSError as e:
print("Error: %s - %s." % (e.filename, e.strerror))
print(f"Error: {e.filename} - {e.strerror}.")

# checkpoint
output_directory_checkpoints = join(run_getting_started_example_directory, "checkpoints")
Expand All @@ -46,7 +46,7 @@ def check_existence_and_clear_getting_started_example_output(
shutil.rmtree(checkpoint_to_delete)
print(f"> removed {checkpoint_to_delete}")
except OSError as e:
print("Error: %s - %s." % (e.filename, e.strerror))
print(f"Error: {e.filename} - {e.strerror}.")


def main(cpu: bool = False, single_gpu: bool = False, multi_gpu: bool = False, devices: str = "0,1"):
Expand Down

0 comments on commit 33c88c0

Please sign in to comment.