Bug#1072591: silx: debci fails tests (testClickOnBackToParentTool)
Drew Parsons
dparsons at debian.org
Wed Jun 5 01:13:10 BST 2024
Source: silx
Version: 2.0.1+dfsg-3
Severity: serious
Justification: debci
Control: affects -1 src:scipy
silx has started failing debci tests.
This is blocking migration of scipy 1.12 to testing
(though in principle scipy shouldn't be causing the problem, since
tests passed recently against the version in experimental)
pytest itself is passing tests on python3.12.
But in unstable, the no-opencl test ends (before starting the
python3.11 test) with the message:
207s ========= 1627 passed, 293 skipped, 170 warnings in 103.58s (0:01:43) ==========
208s Error in sys.excepthook:
208s
208s Original exception was:
208s autopkgtest [17:03:52]: test no-opencl: -----------------------]
208s autopkgtest [17:03:52]: test no-opencl: - - - - - - - - - - results - - - - - - - - - -
208s no-opencl FAIL non-zero exit status 245
In testing (using scipy 1.12 from unstable), python3.12 again passes
but python3.11 gives a more explicit error message
372s __________ TestImageFileDialogInteraction.testClickOnBackToParentTool __________
372s
372s self = <silx.gui.dialog.test.test_imagefiledialog.TestImageFileDialogInteraction testMethod=testClickOnBackToParentTool>
372s
372s def testClickOnBackToParentTool(self):
372s dialog = self.createDialog()
372s dialog.show()
372s self.qWaitForWindowExposed(dialog)
372s
372s url = testutils.findChildren(dialog, qt.QLineEdit, name="url")[0]
372s action = testutils.findChildren(dialog, qt.QAction, name="toParentAction")[0]
372s toParentButton = testutils.getQToolButtonFromAction(action)
372s filename = _tmpDirectory + "/data/data.h5"
372s
372s # init state
372s path = silx.io.url.DataUrl(file_path=filename, data_path="/group/image").path()
372s dialog.selectUrl(path)
372s self.qWaitForPendingActions(dialog)
372s path = silx.io.url.DataUrl(
372s scheme="silx", file_path=filename, data_path="/group/image"
372s ).path()
372s self.assertSamePath(url.text(), path)
372s # test
372s self.mouseClick(toParentButton, qt.Qt.LeftButton)
372s self.qWaitForPendingActions(dialog)
372s path = silx.io.url.DataUrl(
372s scheme="silx", file_path=filename, data_path="/"
372s ).path()
372s self.assertSamePath(url.text(), path)
372s
372s self.mouseClick(toParentButton, qt.Qt.LeftButton)
372s self.qWaitForPendingActions(dialog)
372s self.assertSamePath(url.text(), _tmpDirectory + "/data")
372s
372s self.mouseClick(toParentButton, qt.Qt.LeftButton)
372s self.qWaitForPendingActions(dialog)
372s > self.assertSamePath(url.text(), _tmpDirectory)
372s
372s /usr/lib/python3/dist-packages/silx/gui/dialog/test/test_imagefiledialog.py:285:
372s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
372s /usr/lib/python3/dist-packages/silx/gui/dialog/test/test_imagefiledialog.py:136: in assertSamePath
372s self.assertEqual(path1, path2)
372s E AssertionError: '/tmp/silx.gui.dialog.test.test_imagefiledialogftofnov4/data' != '/tmp/silx.gui.dialog.test.test_imagefiledialogftofnov4'
372s E - /tmp/silx.gui.dialog.test.test_imagefiledialogftofnov4/data
372s E ? -----
372s E + /tmp/silx.gui.dialog.test.test_imagefiledialogftofnov4
More information about the debian-science-maintainers
mailing list