silx
silx copied to clipboard
[test] testLineInteraction fails on windows
Windows 10, python 3.8.3, pyqt5.15 (over remote desktop)
FAIL: testLineInteraction (silx.gui.plot.tools.test.testROI.TestRegionOfInterestManager)
This test make sure that a ROI based on handles can be edited with
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\silx\build\lib.win-amd64-3.8\silx\gui\plot\tools\test\testROI.py", line 570, in testLineInteraction
self.assertNotEqual(points[0, 1], result[0, 1])
AssertionError: 0.0 == 0.0
Points and result are the same:
points: [[ 0. 0.]
[100. 100.]]
result: [[ 0. 0.]
[100. 100.]]
Other GUI tests are flaky but this one always fails.
It could be because of a small screen. As result there is no space to click on the plot and display the profile.
It also fails on a Debian10 machine. I'm doing these tests remotely. The widget takes approx 1/3th of the screen size.
Sounds weird, the screen and widget size looks to match.
Debian10, you mean no uptodate PyQt5? What is the version you have?
I can provide a patch to hide the profile window when a mouse interaction is needed. This way we could see if it's the problem.
Anyway, if the profile window pop over the main window and not on the side, it can't work.
Debian10, you mean no uptodate PyQt5? What is the version you have?
pyqt 5.15
I tried to reproduce under similar conditions. I get many errors during the tests through remote desktop on Windows... but running this test passes.
Since all tests are fine when run through CI, I would be in favor of dropping this from 0.13 milestone. Anyone with a different opinion?
I've removed the 0.13 milestone, please add it back quickly if you disagree.