fix PyQgsLogger test (fixes b5f6d2ce, but also the failure on windows)