-
Notifications
You must be signed in to change notification settings - Fork 6
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
0.6.0: pytest fails in tests/test_python_files.py units #62
Comments
Thx for the report! Let me work on a fix. |
Let's see if this regression in pytest-8.1.1 will be fixed or if pytest plugins have to be adapted. |
Thx for update 👍 |
From pytest-dev/pytest#11475 it looks like the issue here is that pytest 8.1.0 broke this (and other) pytest plugins, and it has not been fixed in pytest 8.1.1. The telltale error this results in will look something like
This issue title and description should ideally be updated as per the above, to make it easier for other users who hit this to realize this is the issue to watch. The current issue title and description make this really unclear. Also looks like pytest-dev/pytest#11475 has been closed for a while with no new activity, and pytest 8.1.1 has since come out without fixing this. |
Mainly hypothesis. Hold back on updating to pytest 8.1.1 since it broke pytest-sphinx, and a compatible version of pytest-sphinx has not come out yet. Ref: twmr/pytest-sphinx#62
Just tested 0.6.2 and looks like all is clan now 😄 ==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-sphinx-0.6.2
configfile: pyproject.toml
plugins: sphinx-0.6.2, benchmark-4.0.0
collected 51 items
tests/test_doc2test.py ..... [ 9%]
tests/test_options.py .......... [ 29%]
tests/test_python_files.py .......... [ 49%]
tests/test_sphinx_doctest.py ................ [ 80%]
tests/test_text_files.py .......... [100%]
==================================================================================== 51 passed in 18.13s ==================================================================================== Thank you and closing 👍 |
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulesinstaller
modulecut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
List of installed modules in build env:
Please let me know if you need more details or want me to perform some diagnostics.
The text was updated successfully, but these errors were encountered: