Bug#982647: spyder-reports FTBFS with Spyder 4.2.1
Adrian Bunk
bunk at debian.org
Fri Feb 12 20:48:48 GMT 2021
Source: spyder-reports
Version: 0.1.1-4
Severity: serious
Tags: ftbfs
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/spyder-reports.html
...
==================================== ERRORS ====================================
_________________ ERROR at setup of test_basic_initialization __________________
obj = <class 'spyder_reports.reportsplugin.ReportsPlugin'>
name = 'initialize_plugin', ann = 'spyder_reports.reportsplugin.ReportsPlugin'
def annotated_getattr(obj: object, name: str, ann: str) -> object:
try:
> obj = getattr(obj, name)
E AttributeError: type object 'ReportsPlugin' has no attribute 'initialize_plugin'
/usr/lib/python3/dist-packages/_pytest/monkeypatch.py:83: AttributeError
The above exception was the direct cause of the following exception:
qtbot = <pytestqt.qtbot.QtBot object at 0x7fee78219220>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee78219310>
@pytest.fixture
def setup_reports(qtbot, monkeypatch):
"""Set up the Reports plugin."""
> monkeypatch.setattr(
'spyder_reports.reportsplugin.ReportsPlugin.initialize_plugin',
lambda self: None)
spyder_reports/tests/test_plugin.py:23:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/_pytest/monkeypatch.py:101: in derive_importpath
annotated_getattr(target, attr, ann=module)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
obj = <class 'spyder_reports.reportsplugin.ReportsPlugin'>
name = 'initialize_plugin', ann = 'spyder_reports.reportsplugin.ReportsPlugin'
def annotated_getattr(obj: object, name: str, ann: str) -> object:
try:
obj = getattr(obj, name)
except AttributeError as e:
> raise AttributeError(
"{!r} object at {} has no attribute {!r}".format(
type(obj).__name__, ann, name
)
) from e
E AttributeError: 'wrappertype' object at spyder_reports.reportsplugin.ReportsPlugin has no attribute 'initialize_plugin'
/usr/lib/python3/dist-packages/_pytest/monkeypatch.py:85: AttributeError
----------- coverage: platform linux, python 3.9.1-final-0 -----------
Name Stmts Miss Cover Missing
----------------------------------------------------------------------------------
spyder_reports/__init__.py 4 0 100%
spyder_reports/_version.py 3 0 100%
spyder_reports/reportsplugin.py 182 129 29% 44-45, 60-61, 65-66, 104-132, 137, 141, 145-162, 166-172, 176, 180, 188-193, 199-203, 207-208, 212-218, 233-268, 272-276, 280-300, 312-355
spyder_reports/tests/__init__.py 1 0 100%
spyder_reports/tests/test_plugin.py 178 150 16% 26-39, 50-53, 58-61, 66-82, 87-91, 96-102, 107-116, 121-153, 158-177, 182-201, 207-230, 235-239, 244-251, 260-304, 312-315, 320-332, 336
spyder_reports/utils/__init__.py 3 0 100%
spyder_reports/widgets/__init__.py 1 0 100%
spyder_reports/widgets/reportsgui.py 115 87 24% 34, 42-84, 88-111, 115-122, 131-136, 145-147, 160-165, 169-171, 175-182, 186-187, 191-194, 209
spyder_reports/widgets/tests/__init__.py 1 0 100%
spyder_reports/widgets/tests/test_report_widget.py 114 89 22% 23-33, 39-41, 47-52, 58-68, 73, 82-90, 95-107, 117-133, 138-151, 156-163, 168-179, 184-186, 191-206, 210
----------------------------------------------------------------------------------
TOTAL 602 455 24%
============================= slowest 10 durations =============================
0.93s setup .pybuild/cpython3_3.9_spyder-reports/build/spyder_reports/tests/test_plugin.py::test_basic_initialization
(1 durations < 0.005s hidden. Use -vv to show these durations.)
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 3.67s ===============================
E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd /build/1st/spyder-reports-0.1.1/.pybuild/cpython3_3.9_spyder-reports/build; python3.9 -m pytest
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
make: *** [debian/rules:10: binary] Error 25
More information about the debian-science-maintainers
mailing list