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

3.6.1: test suite is failing with 6.2.4 is failing #246

Closed
kloczek opened this issue May 18, 2021 · 2 comments
Closed

3.6.1: test suite is failing with 6.2.4 is failing #246

kloczek opened this issue May 18, 2021 · 2 comments

Comments

@kloczek
Copy link

kloczek commented May 18, 2021

tox is OK but looks like upgraded pytest 6.2.4 cannot even start testing and shows deprecation errors.

+ /usr/bin/python3 -Bm pytest -ra -k '  not test_standalone_mock and    not test_detailed_introspection and     not test_detailed_introspection and     not test_assert_called_args_with_introspection and  not test_assert_called_kwargs_with_introspection'
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-mock-3.6.1, configfile: tox.ini
plugins: mock-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, requests-mock-1.9.2, aiohttp-0.3.0, checkdocs-2.7.0, hypothesis-6.12.1, relaxed-1.1.5
collected 0 items / 1 error

================================================================================== ERRORS ==================================================================================
______________________________________________________________________ ERROR collecting test session _______________________________________________________________________
Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent.
See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
========================================================================= short test summary info ==========================================================================
ERROR
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 0.27s =============================================================================
@The-Compiler
Copy link
Member

The-Compiler commented May 18, 2021

SpecModule doesn't exist in pytest-mock at all. From a quick glance, this looks like bitprophet/pytest-relaxed#12.

Also, sorry if I'm being blunt, but it'd be great if you could at least do some minimal effort on yourself (like searching for the error message, or finding out which plugin is to blame) rather than dumping logs at some volunteers and expecting them to track down issues which have nothing to do with the project you're reporting them on.

In sqlalchemy/sqlalchemy#6335 you were even already linked to that issue before for the exact same error, so I'm not sure why you think the outcome would be different here....

@kloczek
Copy link
Author

kloczek commented May 18, 2021

Really sorry.
In recent weeks I've been packaging so many python modules that simple forgot aboput pytest-relaxed :(
Just tested and confirmed that pytest is OK without pytest-relaxed.
I've added BuildConflict: python3dost(pytest-relaxed) to my python-pytest-mock.spec file to prevent that situation like this will happen again.

Again .. sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants