Fix flaky test_tqdm_stream_file by explicitly enabling progress bars (#3844)
The test was failing intermittently in CI when running with pytest-xdist
because the global progress_bar_states could be modified by parallel tests.
Changes:
- Add @patch decorator to ensure HF_HUB_DISABLE_PROGRESS_BARS env var is None
- Call enable_progress_bars() at the start of the test to ensure progress
bars are enabled regardless of global state
This matches the pattern used by other tests in the same class.
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Lucain <Wauplin@users.noreply.github.com>