0.17.3: pytest warnings
See original GitHub issue+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.17.3-9.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyrsistent-0.17.3-9.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (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/pyrsistent-0.17.3, configfile: pytest.ini
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, Faker-8.8.1
collected 625 items
. . [ 0%]
tests/bag_test.py ................................... [ 5%]
tests/checked_map_test.py .................. [ 8%]
tests/checked_set_test.py ............ [ 10%]
tests/checked_vector_test.py ........................ [ 14%]
tests/class_test.py ............................................. [ 21%]
tests/deque_test.py ........................................ [ 28%]
tests/field_test.py .. [ 28%]
tests/freeze_test.py ................ [ 30%]
tests/hypothesis_vector_test.py ... [ 31%]
tests/immutable_object_test.py ....... [ 32%]
tests/list_test.py ...................................... [ 38%]
tests/map_test.py ............................................... [ 46%]
tests/record_test.py ....................................................................................... [ 60%]
tests/regression_test.py . [ 60%]
tests/set_test.py ........................ [ 64%]
tests/toolz_test.py . [ 64%]
tests/transform_test.py ................... [ 67%]
tests/vector_test.py ...................................................................................................s........................................... [ 90%]
............................................................. [100%]
============================================================================= warnings summary =============================================================================
tests/field_test.py:6
/home/tkloczko/rpmbuild/BUILD/pyrsistent-0.17.3/tests/field_test.py:6: PytestCollectionWarning: cannot collect test class 'TestEnum' because it has a __new__ constructor (from: tests/field_test.py)
class TestEnum(Enum):
tests/hypothesis_vector_test.py:19
/home/tkloczko/rpmbuild/BUILD/pyrsistent-0.17.3/tests/hypothesis_vector_test.py:19: PytestCollectionWarning: cannot collect test class 'TestObject' because it has a __init__ constructor (from: tests/hypothesis_vector_test.py)
class TestObject(object):
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/vector_test.py:911: This test only applies to pvectorc
=============================================================== 623 passed, 1 skipped, 2 warnings in 19.73s ================================================================
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Tests fail with pytest-asyncio 0.17 due to asyncio-mode legacy ...
pytest -asyncio introduced a new mode parameter and warns if it is ... These tests expect a testdir.pytest_subprocess run without warnings.
Read more >How to capture warnings — pytest documentation
Similar to Python's warning filter and -W option flag, pytest provides its own -W flag to control which warnings are ignored, displayed, or...
Read more >Py.test command not found, but library is installed
I have installed pytest via pip install pytest . I am able to import the library in Python as well. The problem is...
Read more >Pytests fixtures AttributeError: 'ProfileManager' object has no ...
I have been building some CI/CD test for some local workflows and I have been running into some issues when trying to use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, the naming of some of the dummy/test classes clash with the naming convention for pytest. I’ll update them. Thanks for reporting it.
Probably this should help https://pypi.org/project/pytest-find-dependencies/