aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/loggingcategorymacros_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/loggingcategorymacros_test.py')
-rw-r--r--sources/pyside6/tests/QtCore/loggingcategorymacros_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtCore/loggingcategorymacros_test.py b/sources/pyside6/tests/QtCore/loggingcategorymacros_test.py
index fa85d95ef..a808f0c3d 100644
--- a/sources/pyside6/tests/QtCore/loggingcategorymacros_test.py
+++ b/sources/pyside6/tests/QtCore/loggingcategorymacros_test.py
@@ -17,6 +17,7 @@ from PySide6.QtCore import (QLoggingCategory, QtMsgType, qCDebug, qCWarning, qCI
param = None
+
def handler(msgt, ctx, msg):
global param
param = ctx.category + ": " + msg.strip()
@@ -70,7 +71,6 @@ class TestQLoggingCategory(unittest.TestCase):
qCWarning(self.criticalCategory, f"devices: {self.no_devices}")
self.assertEqual(param, "warning.log: devices: 2")
-
def test_qCritical(self):
qCCritical(self.defaultCategory, "no device")
self.assertEqual(param, "default: no device")