Source: pytest-qt
Version: 2.1.2-2
Severity: serious
Tags: patch

Dear maintainer,

pytest-qt fails to build in the current sid:

  tests/test_logging.py .F.FF......F.................

  tests/test_logging.py::test_basic_logging[True-False] FAILED
  tests/test_logging.py::test_basic_logging[False-False] FAILED
  tests/test_logging.py::test_qtlog_fixture FAILED
  tests/test_logging.py::test_logging_fails_tests[DEBUG-1] FAILED

These failures are caused by the configure file that is now shipped with Qt
and which disables all debug output. See bug #805399 for details.

The fix is exporting QT_LOGGING_RULES="default.debug=true" when running the
tests. A patch to do this is attached.

--
Dmitry Shachnev
--- pytest-qt-2.1.2/debian/rules
+++ pytest-qt-2.1.2/debian/rules
@@ -26,5 +26,5 @@
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
-	xvfb-run -a dh_auto_test
+	QT_LOGGING_RULES="default.debug=true" xvfb-run -a dh_auto_test
 endif
--- pytest-qt-2.1.2/debian/tests/control
+++ pytest-qt-2.1.2/debian/tests/control
@@ -3,7 +3,7 @@
  ; for py in $(py3versions -r 2>/dev/null)
  ; do cd "$AUTOPKGTEST_TMP"
  ; echo "Testing with $py:"
- ; PYTEST_QT_API=pyqt5 xvfb-run -a $py -m pytest tests
+ ; QT_LOGGING_RULES="default.debug=true" PYTEST_QT_API=pyqt5 xvfb-run -a $py -m pytest tests
  ; done
 Depends: python3-all, python3-pyqt5, python3-pytestqt, xauth, xvfb
 
@@ -12,6 +12,6 @@
  ; for py in $(py3versions -r 2>/dev/null)
  ; do cd "$AUTOPKGTEST_TMP"
  ; echo "Testing with $py:"
- ; PYTEST_QT_API=pyqt4 xvfb-run -a $py -m pytest tests
+ ; QT_LOGGING_RULES="default.debug=true" PYTEST_QT_API=pyqt4 xvfb-run -a $py -m pytest tests
  ; done
 Depends: python3-all, python3-pyqt4, python3-pytestqt, xauth, xvfb
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to