diff --git a/tests/test_distributed/test_with_dask/test_with_dask.py b/tests/test_distributed/test_with_dask/test_with_dask.py index 35e07f087919..79df025fead1 100644 --- a/tests/test_distributed/test_with_dask/test_with_dask.py +++ b/tests/test_distributed/test_with_dask/test_with_dask.py @@ -2251,7 +2251,10 @@ def test_callback(self, client: "Client") -> None: ) for i in range(1, 10): assert os.path.exists( - os.path.join(tmpdir, f"model_{i}.{xgb.callback.TrainingCheckPoint}") + os.path.join( + tmpdir, + f"model_{i}.{xgb.callback.TrainingCheckPoint.default_format}", + ) )