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

py.test plugin is incompatible with coverage 7.x #273

Open
yigor opened this issue Jan 11, 2023 · 1 comment · May be fixed by #274
Open

py.test plugin is incompatible with coverage 7.x #273

yigor opened this issue Jan 11, 2023 · 1 comment · May be fixed by #274

Comments

@yigor
Copy link

yigor commented Jan 11, 2023

[16:42:05][Step 3/4] Coverage statistics reporting failed
Traceback (most recent call last):
  File "/opt/buildagent/work/13fee7d45aa6a432/.tox/testenv/.venv/lib/python3.8/site-packages/teamcity/pytest_plugin.py", line 335, in pytest_terminal_summary
    self._report_coverage()
  File "/opt/buildagent/work/13fee7d45aa6a432/.tox/testenv/.venv/lib/python3.8/site-packages/teamcity/pytest_plugin.py", line 427, in _report_coverage
    reporter = _CoverageReporter(
  File "/opt/buildagent/work/13fee7d45aa6a432/.tox/testenv/.venv/lib/python3.8/site-packages/teamcity/pytest_plugin.py", line 372, in __init__
    super(_CoverageReporter, self).__init__(coverage, config)
  File "/opt/buildagent/work/13fee7d45aa6a432/.tox/testenv/.venv/lib/python3.8/site-packages/teamcity/pytest_plugin.py", line 362, in __init__
    self._reporter = Reporter(coverage, config)
TypeError: Reporter() takes no arguments

This is because coverage.report module now contains Reporter class which inherits from typing.Protocol.

@dmitry-moroz
Copy link

@FSchumacher FSchumacher linked a pull request Feb 10, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants