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

3.7.0: test suite uses outdated nose module #180

Open
kloczek opened this issue Aug 18, 2021 · 0 comments
Open

3.7.0: test suite uses outdated nose module #180

kloczek opened this issue Aug 18, 2021 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Aug 18, 2021

nose is no longer maintained since 2016 https://github.com/nose-devs/nose/
Generally speaking nose is for python 2.x. I would recommend switch completely to pytest
https://docs.nose2.io/en/latest/differences.html

+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, 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)
Using --randomly-seed=4223722502
rootdir: /home/tkloczko/rpmbuild/BUILD/flaky-3.7.0
plugins: flaky-3.7.0, 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, pyfakefs-4.5.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, xprocess-0.18.1, black-0.3.12, checkdocs-2.7.1, anyio-3.3.0, Faker-8.11.0, asyncio-0.15.1, trio-0.7.0, httpbin-1.0.0, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, randomly-3.8.0
collected 97 items / 2 errors / 95 selected

================================================================================== ERRORS ==================================================================================
________________________________________________________ ERROR collecting test/test_nose/test_flaky_nose_plugin.py _________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/flaky-3.7.0/test/test_nose/test_flaky_nose_plugin.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)
test/test_nose/test_flaky_nose_plugin.py:7: in <module>
    from flaky import defaults, flaky_nose_plugin
../../BUILDROOT/python-flaky-3.7.0-5.fc35.x86_64/usr/lib/python3.8/site-packages/flaky/flaky_nose_plugin.py:5: in <module>
    from nose.failure import Failure
E   ModuleNotFoundError: No module named 'nose'
___________________________________________________________ ERROR collecting test/test_nose/test_nose_example.py ___________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/flaky-3.7.0/test/test_nose/test_nose_example.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)
test/test_nose/test_nose_example.py:4: in <module>
    from nose.tools import raises
E   ModuleNotFoundError: No module named 'nose'
========================================================================= short test summary info ==========================================================================
ERROR test/test_nose/test_flaky_nose_plugin.py
ERROR test/test_nose/test_nose_example.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================ 2 errors in 0.54s =======================================================================
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