Skip to content

Commit e4361c3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 16fe7ac commit e4361c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/streaming/test_combined.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ def test_combined_dataset_dataloader_states_partial_iterations(combined_dataset,
552552
if batch_idx == break_at:
553553
break
554554

555-
assert not dataloader.restore, (
556-
"Dataloader should not be in restore state after partial iteration, before loading state."
557-
)
555+
assert (
556+
not dataloader.restore
557+
), "Dataloader should not be in restore state after partial iteration, before loading state."
558558
dataloader.load_state_dict(dataloader.state_dict())
559559
assert dataloader.restore, "Dataloader should be in restore state after loading the state from a partial iteration."
560560

@@ -564,9 +564,9 @@ def test_combined_dataset_dataloader_states_partial_iterations(combined_dataset,
564564
assert dataloader.current_epoch == 1, "Current epoch should be 1 during restore"
565565
count += 1
566566
expected_batches = total_batches - break_at - 1
567-
assert count >= expected_batches, (
568-
f"There should be at least{expected_batches} remaining batches in the first epoch."
569-
)
567+
assert (
568+
count >= expected_batches
569+
), f"There should be at least{expected_batches} remaining batches in the first epoch."
570570
assert not dataloader.restore, "Dataloader should not be in restore state after completing first epoch."
571571

572572
# Verify batches in the second epoch

0 commit comments

Comments
 (0)