Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
3.2.1 (2018-10-01)
------------------

- Fixed compatibility with PyQt5 5.11.3

3.2.0 (2018-09-26)
------------------

Expand Down
10 changes: 5 additions & 5 deletions pytestqt/qt_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ def _import_module(module_name):
self.Qt = QtCore.Qt
self.QEvent = QtCore.QEvent

# qInfo is not exposed in PyQt5 and PySide2 bindings (#232)
assert not hasattr(
QtCore, "qInfo"
) # lets break hard so we know when qInfo gets exposed
self.qInfo = None
# qInfo is not exposed in PySide2 (#232)
if hasattr(QtCore, "QMessageLogger"):
self.qInfo = lambda msg: QtCore.QMessageLogger().info(msg)
elif hasattr(QtCore, "qInfo"):
self.qInfo = QtCore.qInfo
else:
self.qInfo = None
self.qDebug = QtCore.qDebug
self.qWarning = QtCore.qWarning
self.qCritical = QtCore.qCritical
Expand Down