2.0.0: pytest iuses `nose` module which is deprecated
kloczek opened this issue · 0 comments
kloczek commented
Issue Type
- Bug Report
- Feature Request
- Documentation Report
- General Enhancement Idea
- ...
Versions & Configuration
2.0.0
Please specify the following things:
- version of
sure
2.0.0 - implementation and version of python
3.8.12 - operating system
Linux/x86_64
Steps to reproduce (Expected and Actual Results)
Build module and run pytest without installed nose
+ /usr/bin/pytest -ra -qq
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, 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)
Using --randomly-seed=1400172788
rootdir: /home/tkloczko/rpmbuild/BUILD/sure-2.0.0, configfile: setup.cfg, testpaths: tests
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, xprocess-0.18.1, black-0.3.12, asyncio-0.15.1, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1, twisted-1.13.3, aiohttp-0.3.0, localserver-0.5.0, anyio-3.3.1, trio-0.7.0, cases-3.6.4, yagot-0.5.0, Faker-8.14.0
collected 41 items / 1 error / 40 selected
================================================================================== ERRORS ==================================================================================
__________________________________________________________________ ERROR collecting tests/test_old_api.py __________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/sure-2.0.0/tests/test_old_api.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_old_api.py:27: in <module>
from nose.tools import assert_equals, assert_raises
E ModuleNotFoundError: No module named 'nose'
========================================================================= short test summary info ==========================================================================
ERROR tests/test_old_api.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 0.60s =============================================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
nose
is no longer maintained and should not be used with python 3.
https://nose.readthedocs.io/en/latest/
On migrate from nose to pytesy https://github.com/schollii/nose2pytest/ may be usefull.