We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ce30c1 commit 05365dfCopy full SHA for 05365df
src/pytestqt/qt_compat.py
@@ -24,7 +24,7 @@
24
25
26
def _import(name):
27
- """Think call so we can mock it during testing"""
+ """Thin call so we can mock it during testing"""
28
return __import__(name)
29
30
@@ -112,10 +112,10 @@ def _import_module(module_name):
112
self._check_qt_api_version()
113
114
# qInfo is not exposed in PySide6 < 6.8.2 (#232)
115
- if hasattr(QtCore, "QMessageLogger"):
116
- self.qInfo = lambda msg: QtCore.QMessageLogger().info(msg)
117
- elif hasattr(QtCore, "qInfo"):
+ if hasattr(QtCore, "qInfo"):
118
self.qInfo = QtCore.qInfo
+ elif hasattr(QtCore, "QMessageLogger"):
+ self.qInfo = lambda msg: QtCore.QMessageLogger().info(msg)
119
else:
120
self.qInfo = None
121
0 commit comments