Skip to content

Commit

Permalink
Update pytest import_path location (huggingface#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 AdrianAbeyta committed Mar 5, 2024
1 parent e2d3fb3 commit c9465f0
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 @@ -133,9 +133,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 c9465f0

Please sign in to comment.