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
2.9.2: pytest fails #215
Comments
BTW is it not would be better to move bitarray/test_*.py files to tests/ to not install those files? 🤔 |
Thank you for using bitarray and reporting this issue. What is the reasoning for using the command |
Reason is described in PEP517 https://peps.python.org/pep-0517/ 😋 |
Using |
Looks like I found solution. To pytest args needs to be added + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-bitarray-2.9.2-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-bitarray-2.9.2-2.fc37.x86_64/usr/lib/python3.10/site-packages
+ /usr/bin/pytest -ra -m 'not network' --pyargs bitarray
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.10.14, pytest-8.2.1, pluggy-1.5.0
rootdir: /home/tkloczko/rpmbuild/BUILD/bitarray-2.9.2
configfile: pytest.ini
collected 502 items
test_bitarray.py .................................................................................................................................................................... [ 32%]
..................................................................................................................................................................................... [ 68%]
. [ 68%]
test_util.py ............................................................................................................................................................ [100%]
===================================================================================== warnings summary ======================================================================================
test_util.py: 34 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-bitarray-2.9.2-2.fc37.x86_64/usr/lib64/python3.10/site-packages/bitarray/util.py:142: DeprecationWarning: make_endian() is deprecated and will be removed in bitarray 3.0 - use bitarray(..., endian=...) instead
warn("make_endian() is deprecated and will be removed in bitarray 3.0 - "
test_util.py: 491 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-bitarray-2.9.2-2.fc37.x86_64/usr/lib64/python3.10/site-packages/bitarray/util.py:65: DeprecationWarning: rindex() is deprecated and will be removed in bitarray 3.0 - use .index(..., right=True) method instead.
warn("rindex() is deprecated and will be removed in bitarray 3.0 - "
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================= 502 passed, 525 warnings in 3.11s ============================================================================= It would be good to add |
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:
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: