Commit ef0f5cd
committed
tests: Simplify Timer utility class
After enabling -Werror for tests, for unknown reasons,
tests/test_wait_signal.py::test_zero_timeout[True] consistently fails on
macOS + Python 3.13 + PySide6 (only there!) with:
RuntimeWarning: Failed to disconnect (functools.partial(<bound method
timer.<locals>.Timer._emit of <conftest.Timer(0x...) at 0x...>>,
<PySide6.QtCore.SignalInstance signal() at 0x...>)) from signal "timeout()".
Qt supports connecting signals to signals, so we can save the detour via Python
and functools.partial.1 parent 0245b31 commit ef0f5cd
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
67 | | - | |
| 65 | + | |
68 | 66 | | |
69 | | - | |
| 67 | + | |
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
| |||
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 76 | | |
82 | 77 | | |
83 | 78 | | |
0 commit comments