diff --git a/src/transformers/testing_utils.py b/src/transformers/testing_utils.py index ca4b0db8b8cc0b..2594f25c0bd66e 100644 --- a/src/transformers/testing_utils.py +++ b/src/transformers/testing_utils.py @@ -136,9 +136,9 @@ _is_mocked, _patch_unwrap_mock_aware, get_optionflags, - import_path, ) from _pytest.outcomes import skip + from _pytest.pathlib import import_path from pytest import DoctestItem else: Module = object