pytest-qt icon indicating copy to clipboard operation
pytest-qt copied to clipboard

Tests failures because of logging changes in Qt

Open ghisvail opened this issue 7 years ago • 1 comments

Forwarded from Debian-Bug#872992.

The TL;DR is that testing with Qt 5.9 fails because of a change in the logging. The reporter solved this by exporting QT_LOGGING_RULES="default.debug=true" prior to running the tests.

ghisvail avatar Aug 23 '17 14:08 ghisvail

Thanks for the report @ghisvail.

From what I can understand this affects pytest-qt's own test suite only.

I wonder if setting the environment variable QT_LOGGING_RULES before running the tests but after Qt is imported solves this; this way we could easily create an autouse fixture for pytest-qt's test suite which sets this environment variable automatically.

nicoddemus avatar Aug 23 '17 20:08 nicoddemus