-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
nose
is already deprecated and shoud not be used with python 3.x https://nose.readthedocs.io/en/latest/
+ /usr/bin/pytest -ra tests/gen_sysfs_testenv.py tests/sysfs.py
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/sasutils-0.3.12
collected 8 items / 1 error / 7 selected
================================================================================== ERRORS ==================================================================================
_______________________________________________________________ ERROR collecting tests/gen_sysfs_testenv.py ________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/sasutils-0.3.12/tests/gen_sysfs_testenv.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/gen_sysfs_testenv.py:23: in <module>
import nose
E ModuleNotFoundError: No module named 'nose'
========================================================================= short test summary info ==========================================================================
ERROR tests/gen_sysfs_testenv.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 0.09s =============================================================================
On migration to pytest
usefull could be https://github.com/schollii/nose2pytest/
Metadata
Metadata
Assignees
Labels
No labels