Skip to content

Commit

Permalink
Update pytest import_path location (#29154)
Browse files Browse the repository at this point in the history
* Update to pull function from proper lib

* Fix ruff formatting error

* Remove accidently added file
  • Loading branch information
loadams committed Mar 5, 2024
1 parent 8f3f8e6 commit 9c5e560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c5e560

Please sign in to comment.