[Debian-med-packaging] Bug#1075906: graphlan: fails tests with matplotlib 3.8
Drew Parsons
dparsons at debian.org
Sun Jul 7 18:09:19 BST 2024
Source: graphlan
Version: 1.1.3-5
Severity: normal
graphlan fails tests with matplotlib 3.8 from experimental
https://ci.debian.net/packages/g/graphlan/unstable/arm64/48726737/
121s autopkgtest [06:36:33]: test run-unit-test: [-----------------------
121s Running test script ./simple/run.sh .
124s Traceback (most recent call last):
124s File "/usr/bin/graphlan", line 73, in <module>
124s ctree.draw(args['outimg'],
124s File "/usr/share/graphlan/src/graphlan_lib.py", line 1110, in draw
124s plt.figlegend(ll, sorted(self._ext_key), 'upper left', frameon=False,
124s File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 1143, in figlegend
124s return gcf().legend(*args, **kwargs)
124s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124s File "/usr/lib/python3/dist-packages/matplotlib/figure.py", line 1146, in legend
124s handles, labels, kwargs = mlegend._parse_legend_args(self.axes, *args, **kwargs)
124s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124s File "/usr/lib/python3/dist-packages/matplotlib/legend.py", line 1382, in _parse_legend_args
124s raise _api.nargs_error('legend', '0-2', len(args))
124s TypeError: legend() takes 0-2 positional arguments but 3 were given
124s autopkgtest [06:36:36]: test run-unit-test: -----------------------]
Looks like graphlan now needs to provide one of those arguments by
keyname.
More information about the Debian-med-packaging
mailing list