Bug#1025188: spyder-unittest: (autopkgtest) needs update for python3.11: AssertionError
Paul Gevers
elbrus at debian.org
Wed Nov 30 20:08:56 GMT 2022
Source: spyder-unittest
Version: 0.5.1-1
Severity: serious
Tags: sid bookworm
User: debian-ci at lists.debian.org
Usertags: needs-update
User: debian-python at lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults
Dear maintainer(s),
We are in the transition of adding python3.11 as a supported Python
version [0]. With a recent upload of python3-defaults the autopkgtest of
spyder-unittest fails in testing when that autopkgtest is run with the
binary packages of python3-defaults from unstable. It passes when run
with only packages from testing. In tabular form:
pass fail
python3-defaults from testing 3.10.6-3
spyder-unittest from testing 0.5.1-1
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration of python3-defaults
to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists
what's new in Python3.11, it may help to identify what needs to be updated.
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[0] https://bugs.debian.org/1021984
[1] https://qa.debian.org/excuses.php?package=python3-defaults
https://ci.debian.net/data/autopkgtest/testing/amd64/s/spyder-unittest/28796442/log.gz
=================================== FAILURES
===================================
______________ test_run_tests_using_unittest_and_display_results
_______________
qtbot = <pytestqt.qtbot.QtBot object at 0x7fd5120ba390>
widget = <spyder_unittest.widgets.unittestgui.UnitTestWidget object at
0x7fd5120a29e0>
tmpdir =
local('/tmp/pytest-of-debci/pytest-0/test_run_tests_using_unittest_0')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd5120bba10>
def test_run_tests_using_unittest_and_display_results(
qtbot, widget, tmpdir, monkeypatch):
"""Basic check."""
os.chdir(tmpdir.strpath)
testfilename = tmpdir.join('test_foo.py').strpath
with open(testfilename, 'w') as f:
f.write("import unittest\n"
"class MyTest(unittest.TestCase):\n"
" def test_ok(self): self.assertEqual(1+1, 2)\n"
" def test_fail(self): self.assertEqual(1+1, 3)\n")
MockQMessageBox = Mock()
monkeypatch.setattr('spyder_unittest.widgets.unittestgui.QMessageBox',
MockQMessageBox)
config = Config(wdir=tmpdir.strpath, framework='unittest',
coverage=False)
with qtbot.waitSignal(widget.sig_finished, timeout=10000,
raising=True):
widget.run_tests(config)
MockQMessageBox.assert_not_called()
model = widget.testdatamodel
assert model.rowCount() == 2
assert model.index(0, 0).data(Qt.DisplayRole) == 'FAIL'
> assert model.index(0, 1).data(Qt.DisplayRole) == 't.M.test_fail'
E AssertionError: assert 't.M.test_f.test_fail' == 't.M.test_fail'
E - t.M.test_fail
E + t.M.test_f.test_fail
E ? +++++++
/tmp/autopkgtest-lxc.6hcp6lhp/downtmp/build.hJ9/src/spyder_unittest/widgets/tests/test_unittestgui.py:210:
AssertionError
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20221130/c7a7f100/attachment-0001.sig>
More information about the debian-science-maintainers
mailing list