Skip to content

Commit

Permalink
commit change
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Tang committed Oct 14, 2024
1 parent 3f38dc2 commit edaf21c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/trainer/test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1715,10 +1715,9 @@ def test_load_incorrect_path(self, world_size: int, tmp_path: pathlib.Path, capl
if dist.get_global_rank() == 0:
assert f'Local path {incorrect_path} does not exist' in str(exc_info.value)
else:
assert f'No such file or directory: {incorrect_path}. This likely implies a download failed on local rank 0 or global rank 0' in str(
exc_info.value
)
assert f'Please check the logs for global rank 0 to debug the checkpoint download issue.' in str(
assert 'No such file or directory:' in str(exc_info.value)
assert 'This likely implies a download failed on local rank 0 or global rank 0' in str(exc_info.value)
assert 'Please check the logs for global rank 0 to debug the checkpoint download issue.' in str(
exc_info.value
)

Expand Down

0 comments on commit edaf21c

Please sign in to comment.