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 authored and Ita Zaporozhets committed May 14, 2024
1 parent 2990032 commit 8cb491e
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 8cb491e

Please sign in to comment.