-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Bug]: Test collection fails for three tests with pytest 8.2.0 #1114
Comments
Hi @penguinpee I will discuss with the team. That being said the error does not appear on our scheduled test workflows as we are using pytest 7.4.3. |
Hi @penguinpee after discussion with the team, we will update to pytest 8 in the future. I will post a deadline here when we have one. |
Thanks! Should I have any news with regards to that issue, I'll post an update here. |
This appears to be an issue in pytest trying to instantiat abstract classes: pytest-dev/pytest#12275 It will be fixed in release 8.3.0. |
Wonderful. Let's see! |
The workaround using |
Now that Fedora has pytest 8.3.3, I tried removing the patch corresponding to the workaround described in pytest-dev/pytest#12275 (comment) from Fedora’s |
Thanks for checking back in @musicinmybrain ! |
What happened?
Fedora is preparing to upgrade
pytest
to 8.x (currently 8.2.0). When running tests with that version ofpytest
, three test cannot be collected and fail withTypeError
.I used the approach below (using an empty directory) since I encountered issues with test collection previously. In this case, however, it didn't make a difference. Step 1 to 3 can be omitted, yielding the same result.
Steps to Reproduce
Traceback
Operating System
Linux
Python Executable
Python
Python Version
3.12
Package Versions
Python 3.12.3
pytest 8.2.0
hdmf 3.13.0
h5py 3.11.0
jsonschema 4.19.1
numpy 1.26.4
pandas 2.2.1
ruamel-yaml 0.18.5
scipy 1.11.3
We are using the packages available from the Fedora repositories. Listed are the dependencies for HDMF.
The text was updated successfully, but these errors were encountered: