Skip to content

Commit

Permalink
Fix import paths for test_module (huggingface#32888)
Browse files Browse the repository at this point in the history
* Fix import path for test_feature_extraction_utils.py

See huggingface#32601

* Fix import path for test_image_processing_utils.py
  • Loading branch information
rasmi authored and zucchini-nlp committed Aug 30, 2024
1 parent 03bf755 commit 795d504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/utils/test_feature_extraction_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from transformers.testing_utils import TOKEN, USER, get_tests_dir, is_staging_test


sys.path.append(str(Path(__file__).parent.parent / "utils"))
sys.path.append(str(Path(__file__).parent.parent.parent / "utils"))

from test_module.custom_feature_extraction import CustomFeatureExtractor # noqa E402

Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_image_processing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from transformers.testing_utils import TOKEN, USER, get_tests_dir, is_staging_test


sys.path.append(str(Path(__file__).parent.parent / "utils"))
sys.path.append(str(Path(__file__).parent.parent.parent / "utils"))

from test_module.custom_image_processing import CustomImageProcessor # noqa E402

Expand Down

0 comments on commit 795d504

Please sign in to comment.