Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

RFE: please provide update for latest testtools 2.7.0 #18

Closed
kloczek opened this issue Nov 24, 2023 · 2 comments
Closed

RFE: please provide update for latest testtools 2.7.0 #18

kloczek opened this issue Nov 24, 2023 · 2 comments

Comments

@kloczek
Copy link
Contributor

kloczek commented Nov 24, 2023

Looks like test suite needs to be updated

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-traceback2-1.4.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-traceback2-1.4.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/traceback2-1.4.0
plugins: mypy-0.10.3, black-0.3.12, flake8-1.1.1, checkdocs-2.10.1, enabler-2.3.1, cov-4.1.0, hypothesis-6.84.3
collected 11 items / 1 error

========================================================================================== ERRORS ===========================================================================================
____________________________________________________________________ ERROR collecting traceback2/tests/test_traceback.py ____________________________________________________________________
ImportError while importing test module '/home/tkloczko/rpmbuild/BUILD/traceback2-1.4.0/traceback2/tests/test_traceback.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)
traceback2/tests/test_traceback.py:29: in <module>
    import testtools
/usr/lib/python3.8/site-packages/testtools/__init__.py:50: in <module>
    from testtools.matchers._impl import Matcher
E   ModuleNotFoundError: No module named 'testtools.matchers'
===================================================================================== warnings summary ======================================================================================
../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:147
../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:147
../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:147
../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:147
  /usr/lib/python3.8/site-packages/_pytest/nodes.py:147: PytestDeprecationWarning: <class 'pytest_black.BlackItem'> is not using a cooperative constructor and only takes {'parent', 'fspath'}.
  See https://docs.pytest.org/en/stable/deprecations.html#constructors-of-custom-pytest-node-subclasses-should-take-kwargs for more details.
    warnings.warn(

../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:264
../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:264
../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:264
../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:264
  /usr/lib/python3.8/site-packages/_pytest/nodes.py:264: PytestRemovedIn8Warning: The (fspath: py.path.local) argument to BlackItem is deprecated. Please use the (path: pathlib.Path) argument instead.
  See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path
    return cls._create(parent=parent, **kw)

../../../../../usr/lib/python3.8/site-packages/_pytest/nodes.py:724
  /usr/lib/python3.8/site-packages/_pytest/nodes.py:724: PytestWarning: BlackItem is an Item subclass and should not be a collector, however its bases File are collectors.
  Please split the Collectors and the Item into separate node types.
  Pytest Doc example: https://docs.pytest.org/en/latest/example/nonpython.html
  example pull request on a plugin: https://github.com/asmeurer/pytest-flakes/pull/40/
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.8.18-final-0 -----------
Name                                 Stmts   Miss  Cover
--------------------------------------------------------
traceback2/__init__.py                 245    193    21%
traceback2/tests/__init__.py             0      0   100%
traceback2/tests/test_traceback.py     629    613     3%
--------------------------------------------------------
TOTAL                                  874    806     8%

================================================================================== short test summary info ==================================================================================
ERROR traceback2/tests/test_traceback.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================== 9 warnings, 1 error in 0.24s ================================================================================
@jelmer
Copy link
Member

jelmer commented Nov 24, 2023

Is there any supported Python version that still requires the traceback2 backport?

@jelmer
Copy link
Member

jelmer commented Nov 25, 2023

It looks like you have a broken testtools installation; I can't reproduce this.

@jelmer jelmer closed this as completed Nov 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants