-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the pytest version to be less than 8.0.1 #2461
Fix the pytest version to be less than 8.0.1 #2461
Conversation
We're getting errors such as: > /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/transformers/testing_utils.py:129: in <module> > from _pytest.doctest import ( > E ImportError: cannot import name 'import_path' from '_pytest.doctest' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/doctest.py)
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Not sure whom to ping, as Zach is off this week, maybe @ydshieh with reference to huggingface/transformers#28758. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with @fxmarty comments. We shouldn't have issues with 8.0.0. 8.0.1 is the problematic one. In transformers, they pinned the pytest version for the tests to <8.0.1
In the linked PR, the version was pinned to |
@BenjaminBossan I don't think it really matters, let's leave it like is |
Co-authored-by: fxmarty <9808326+fxmarty@users.noreply.github.com>
In transformers, they had other issues with 8.0.0 for some tests. I will merge this since some checks are failing because without this specific PR. Thanks again @BenjaminBossan for your prompt fix ! |
What does this PR do?
Fixes the pytest version.
We're getting errors such as this one:
https://github.com/huggingface/accelerate/actions/runs/7958684877/job/21725397566?pr=2450