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

1.0.2: pytest is failing #51

Open
kloczek opened this issue May 7, 2022 · 2 comments
Open

1.0.2: pytest is failing #51

kloczek opened this issue May 7, 2022 · 2 comments

Comments

@kloczek
Copy link

kloczek commented May 7, 2022

I'm trying to package 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
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Looks like it is some issue with collecting units.
Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-vcr-1.0.2-13.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-vcr-1.0.2-13.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pytest-vcr-1.0.2
plugins: vcr-1.0.2
collected 0 items / 1 error

================================================================================== ERRORS ==================================================================================
____________________________________________________________________ ERROR collecting tests/test_vcr.py ____________________________________________________________________
tests/test_vcr.py:7: in <module>
    assert pytest.config.pluginmanager.hasplugin("vcr")
/usr/lib/python3.8/site-packages/pytest/__init__.py:165: in __getattr__
    raise AttributeError(f"module {__name__} has no attribute {name}")
E   AttributeError: module pytest has no attribute config
========================================================================= short test summary info ==========================================================================
ERROR tests/test_vcr.py - AttributeError: module pytest has no attribute config
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 0.08s =============================================================================
@kloczek
Copy link
Author

kloczek commented Jul 17, 2022

ping ..

@kloczek
Copy link
Author

kloczek commented Jan 27, 2024

Gentle ping again 🤔

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

1 participant