aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-01-16 16:27:00 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-01-16 15:31:02 +0000
commit965287a00a0a670154f711a996bf98652d69dc2c (patch)
tree86f1f4f29f4b1c585c1fb2fb8198b38a2b61cc19 /sources
parent11dbdfc351d70f556790d6ff5b5eac488b8eca0c (diff)
qinstallmsghandler_test.py: Test qDebug() in debug builds only
Otherwise, messages are suppressed and the test fails. Change-Id: Ie7fb8192e542a09822f6e1f70392100f4cdc0f11 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside2/tests/QtCore/qinstallmsghandler_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sources/pyside2/tests/QtCore/qinstallmsghandler_test.py b/sources/pyside2/tests/QtCore/qinstallmsghandler_test.py
index d8f7bb3a5..08580823e 100644
--- a/sources/pyside2/tests/QtCore/qinstallmsghandler_test.py
+++ b/sources/pyside2/tests/QtCore/qinstallmsghandler_test.py
@@ -65,9 +65,10 @@ class QInstallMsgHandlerTest(unittest.TestCase):
def testHandler(self):
rethandler = qInstallMessageHandler(handler)
- qDebug("Test Debug")
- self.assertEqual(param[0], QtDebugMsg)
- self.assertEqual(param[2], "Test Debug")
+ if QLibraryInfo.isDebugBuild():
+ qDebug("Test Debug")
+ self.assertEqual(param[0], QtDebugMsg)
+ self.assertEqual(param[2], "Test Debug")
qWarning("Test Warning")
self.assertEqual(param[0], QtWarningMsg)
self.assertEqual(param[2], "Test Warning")