aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/qinstallmsghandler_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtCore/qinstallmsghandler_test.py')
-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")