Skip to content
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

pytest-xprocess is not detected correctly since 0.19.0 #592

Open
mgorny opened this issue Oct 15, 2024 · 0 comments · May be fixed by #593
Open

pytest-xprocess is not detected correctly since 0.19.0 #592

mgorny opened this issue Oct 15, 2024 · 0 comments · May be fixed by #593

Comments

@mgorny
Copy link

mgorny commented Oct 15, 2024

Starting with 0.19.0, pytest-xprocess no longer includes pytest_xprocess module. As a result, all relevant tests are skipped:

$ tox -e py311
py311: install_deps> python -I -m pip install -r requirements/tests.txt
.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel
.pkg: _optional_hooks> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_sdist> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_wheel> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: prepare_metadata_for_build_wheel> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: build_sdist> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
py311: install_package_deps> python -I -m pip install Flask 'cachelib>=0.9.0'
py311: install_package> python -I -m pip install --force-reinstall --no-deps /tmp/flask-caching/.tox/.tmp/package/1/flask_caching-2.3.0.tar.gz
py311: commands[0]> pytest -v --capture=tee-sys --tb=short --basetemp=/tmp/flask-caching/.tox/py311/tmp
========================================================= test session starts =========================================================
platform linux -- Python 3.11.10, pytest-8.2.0, pluggy-1.5.0 -- /tmp/flask-caching/.tox/py311/bin/python
cachedir: .tox/py311/.pytest_cache
rootdir: /tmp/flask-caching
configfile: setup.cfg
testpaths: tests
plugins: xprocess-1.0.2, asyncio-0.23.7
asyncio: mode=Mode.STRICT
collected 201 items                                                                                                                   

tests/test_backend_cache.py::TestSimpleCache::test_generic_get_dict PASSED                                                      [  0%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_set_get PASSED                                                       [  0%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_get_set PASSED                                                       [  1%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_get_many PASSED                                                      [  1%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_set_many PASSED                                                      [  2%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_add PASSED                                                           [  2%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_delete PASSED                                                        [  3%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_delete_many PASSED                                                   [  3%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_inc_dec PASSED                                                       [  4%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_true_false PASSED                                                    [  4%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_timeout PASSED                                                       [  5%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_has PASSED                                                           [  5%]
tests/test_backend_cache.py::TestSimpleCache::test_generic_get_bytes PASSED                                                     [  6%]
tests/test_backend_cache.py::TestSimpleCache::test_purge PASSED                                                                 [  6%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_get_dict PASSED                                                  [  7%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_set_get PASSED                                                   [  7%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_get_set PASSED                                                   [  8%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_get_many PASSED                                                  [  8%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_set_many PASSED                                                  [  9%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_add PASSED                                                       [  9%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_delete PASSED                                                    [ 10%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_delete_many PASSED                                               [ 10%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_inc_dec PASSED                                                   [ 11%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_true_false PASSED                                                [ 11%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_timeout PASSED                                                   [ 12%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_has PASSED                                                       [ 12%]
tests/test_backend_cache.py::TestFileSystemCache::test_generic_get_bytes PASSED                                                 [ 13%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_dict[None] SKIPPED (pytest-xprocess not installed.)               [ 13%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_dict[False] SKIPPED (pytest-xprocess not installed.)              [ 14%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_dict[True] SKIPPED (pytest-xprocess not installed.)               [ 14%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_dict[gen_key_prefix] SKIPPED (pytest-xprocess not installed.)     [ 15%]
tests/test_backend_cache.py::TestRedisCache::test_generic_set_get[None] SKIPPED (pytest-xprocess not installed.)                [ 15%]
tests/test_backend_cache.py::TestRedisCache::test_generic_set_get[False] SKIPPED (pytest-xprocess not installed.)               [ 16%]
tests/test_backend_cache.py::TestRedisCache::test_generic_set_get[True] SKIPPED (pytest-xprocess not installed.)                [ 16%]
tests/test_backend_cache.py::TestRedisCache::test_generic_set_get[gen_key_prefix] SKIPPED (pytest-xprocess not installed.)      [ 17%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_set[None] SKIPPED (pytest-xprocess not installed.)                [ 17%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_set[False] SKIPPED (pytest-xprocess not installed.)               [ 18%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_set[True] SKIPPED (pytest-xprocess not installed.)                [ 18%]
tests/test_backend_cache.py::TestRedisCache::test_generic_get_set[gen_key_prefix] SKIPPED (pytest-xprocess not installed.)      [ 19%]
[...]

Environment:

  • Python version: 3.11.10
  • Flask-Caching version: 494d498
mgorny added a commit to mgorny/flask-caching that referenced this issue Oct 15, 2024
Fix conftest not to require `pytest_xprocess` module.  This module
has been removed back in 2021, and it is missing since pytest-xprocess
0.19.0.  Checking for just `xprocess` is fine, and makes all tests run
again.

fixes pallets-eco#592
mgorny added a commit to mgorny/flask-caching that referenced this issue Oct 15, 2024
Fix conftest not to require `pytest_xprocess` module.  This module
has been removed back in 2021, and it is missing since pytest-xprocess
0.19.0.  Checking for just `xprocess` is fine, and makes all tests run
again.

fixes pallets-eco#592
@mgorny mgorny linked a pull request Oct 15, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant