Skip to content

Commit eaa6b00

Browse files
committed
fix(TQDMProgressBar): Ensure TQDMProgressBar is used in DDP test
The test_progress_bar_max_val_check_interval_ddp test was failing in CI due to an AttributeError. This occurred because _RICH_AVAILABLE was not mocked, leading to RichProgressBar being used incorrectly. This commit adds the necessary @patch decorator to ensure TQDMProgressBar is instantiated as expected.
1 parent 20b3df8 commit eaa6b00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tests_pytorch/callbacks/progress/test_tqdm_progress_bar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ def test_progress_bar_max_val_check_interval(
626626
assert pbar_callback.is_enabled
627627

628628

629+
@patch("lightning.pytorch.trainer.connectors.callback_connector._RICH_AVAILABLE", False)
629630
@RunIf(min_cuda_gpus=2, standalone=True)
630631
@pytest.mark.parametrize("val_check_interval", [0.2, 0.5])
631632
def test_progress_bar_max_val_check_interval_ddp(tmp_path, val_check_interval):

0 commit comments

Comments
 (0)