Fix import paths for test_module (#32888)
* Fix import path for test_feature_extraction_utils.py See https://github.com/huggingface/transformers/pull/32601 * Fix import path for test_image_processing_utils.py
This commit is contained in:
@@ -27,7 +27,7 @@ from transformers import AutoFeatureExtractor, Wav2Vec2FeatureExtractor
|
|||||||
from transformers.testing_utils import TOKEN, USER, get_tests_dir, is_staging_test
|
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
|
from test_module.custom_feature_extraction import CustomFeatureExtractor # noqa E402
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ from transformers.image_processing_utils import get_size_dict
|
|||||||
from transformers.testing_utils import TOKEN, USER, get_tests_dir, is_staging_test
|
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
|
from test_module.custom_image_processing import CustomImageProcessor # noqa E402
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user