From 9c5e560924c4868033cc9ac650bee80dc4049158 Mon Sep 17 00:00:00 2001 From: Logan Adams <114770087+loadams@users.noreply.github.com> Date: Tue, 5 Mar 2024 04:23:34 -0800 Subject: [PATCH] Update pytest `import_path` location (#29154) * Update to pull function from proper lib * Fix ruff formatting error * Remove accidently added file --- src/transformers/testing_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/testing_utils.py b/src/transformers/testing_utils.py index fd5974d8d5bb54..adcadfc379251e 100644 --- a/src/transformers/testing_utils.py +++ b/src/transformers/testing_utils.py @@ -137,9 +137,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