On Fri May 26 12:58:49 2023 +0000, Rémi Bernon wrote:
The `test_SetFocus` problem comes from it giving focus to an invisible window. It looks like this cause the foreground attribute to be offered to another process when the windows are destroyed, and the test process loses it for good even if it later creates additional windows. I think a better workaround would be to move test_SetFocus below all the other tests, although an even better solution would perhaps to have an always present fallback window and avoid losing foreground state entirely (because I think this is also happening in other tests, sometimes spuriously).
I like the fallback window idea, I'll try that, thanks.