Skip to content
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

0.3.12: test suite uses nose #21

Open
kloczek opened this issue Mar 9, 2022 · 1 comment
Open

0.3.12: test suite uses nose #21

kloczek opened this issue Mar 9, 2022 · 1 comment

Comments

@kloczek
Copy link

kloczek commented Mar 9, 2022

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/

@kloczek
Copy link
Author

kloczek commented Jun 8, 2024

Gentle ping .. any chance to make sasutils test suite useable with pytest? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant