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

6.0.0: pyutilib uses nose which outdated #116

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

6.0.0: pyutilib uses nose which outdated #116

kloczek opened this issue Aug 31, 2021 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Aug 31, 2021

https://nose.readthedocs.io/en/latest/
It woild be good to migrate to pytest.

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pyutilib-6.0.0-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pyutilib-6.0.0-3.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra --import-mode=importlib
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, 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=718497421
rootdir: /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0
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, cases-3.6.3, xprocess-0.18.1, black-0.3.12, anyio-3.3.0, asyncio-0.15.1, trio-0.7.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, Faker-8.12.1, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1
collected 590 items / 1 error / 589 selected

================================================================================== ERRORS ==================================================================================
_____________________________________________________ ERROR collecting pyutilib/component/config/tests/test_config.py ______________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/component/config/tests/test_config.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
pyutilib/component/config/tests/test_config.py:11: in <module>
    from nose.tools import nottest
E   ModuleNotFoundError: No module named 'nose'
============================================================================= warnings summary =============================================================================
pyutilib/component/config/tests/test_options.py:155
  /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/component/config/tests/test_options.py:155: DeprecationWarning: invalid escape sequence \<
    if re.match("\<Option \[globals\] 'o1'\>",

pyutilib/component/config/tests/test_options.py:160
  /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/component/config/tests/test_options.py:160: DeprecationWarning: invalid escape sequence \<
    re.match("\<Option \[globals\] 'o1'\>", str(ep.service("o1"))) is

pyutilib/component/config/tests/test_options.py:163
  /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/component/config/tests/test_options.py:163: DeprecationWarning: invalid escape sequence \<
    re.match("\<Option \[foo\] 'o2'\>", str(ep.service("o2"))) is None)

pyutilib/dev/tests/test_runtests.py:30
  /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/dev/tests/test_runtests.py:30: DeprecationWarning: invalid escape sequence \S
    g = re.match('(\S+) \(([^\)]+)\)', line)

pyutilib/misc/tests/test_config.py:1076
  /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/misc/tests/test_config.py:1076: DeprecationWarning: invalid escape sequence \{
    stripped_reference = re.sub('\{[^\}]*\}','',reference,flags=re.M)

pyutilib/misc/tests/test_misc.py:208
  /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/misc/tests/test_misc.py:208: DeprecationWarning: invalid escape sequence \
    ans = pyutilib.misc.quote_split(' ', "a b\ c")

pyutilib/misc/tests/test_misc.py:209
  /home/tkloczko/rpmbuild/BUILD/pyutilib-6.0.0/pyutilib/misc/tests/test_misc.py:209: DeprecationWarning: invalid escape sequence \
    self.assertEqual(ans, ["a", 'b\ c'])

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
ERROR pyutilib/component/config/tests/test_config.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================= 7 warnings, 1 error in 0.88s =======================================================================
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()'.
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