Skip to content

Commit

Permalink
add comment to negative time test
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh authored and gpetretto committed Jul 25, 2024
1 parent 9e403bd commit 346c0d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/io/test_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ def test_convert_time_to_str(self, slurm_io):
assert time_str == "0-0:10:2"

# test negative
# negative time makes no sense and should not be passed. this test is just to be alerted
# if the output for negative numbers changes
time_str = slurm_io._convert_time_to_str(-10)
assert time_str == "-1-23:59:50"

Expand Down

0 comments on commit 346c0d6

Please sign in to comment.