0.10.1: pytest warnings
kloczek opened this issue · 0 comments
kloczek commented
Just normal build, install and test cycle used on building package from non-root account:
- "setup.py build"
- "setup.py install --root </install/prefix>"
- "pytest with PYTHONPATH pointing to setearch and sitelib inside </install/prefix>
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-terminado-0.10.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-terminado-0.10.1-2.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/terminado-0.10.1
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 10 items
. . [ 11%]
terminado/tests/basic_test.py ........ [100%]
============================================================================= warnings summary =============================================================================
terminado/tests/basic_test.py:39
/home/tkloczko/rpmbuild/BUILD/terminado-0.10.1/terminado/tests/basic_test.py:39: PytestCollectionWarning: cannot collect test class 'TestTermClient' because it has a __init__ constructor (from: terminado/tests/basic_test.py)
class TestTermClient(object):
terminado/tests/basic_test.py::UniqueTermTests::test_max_terminals
/home/tkloczko/rpmbuild/BUILD/terminado-0.10.1/terminado/tests/basic_test.py:259: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(msg, None)
terminado/tests/basic_test.py::UniqueTermTests::test_max_terminals
/home/tkloczko/rpmbuild/BUILD/terminado-0.10.1/terminado/tests/basic_test.py:264: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(msg[0], 'setup')
-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 9 passed, 3 warnings in 45.61s ======================================================================