From 1615b260a0e8596405d0b0b5d2bce99ed46fbd49 Mon Sep 17 00:00:00 2001 From: dalthviz Date: Wed, 1 Sep 2021 20:08:53 +0200 Subject: [PATCH] QtWinExtras: QtWin is unavailable in PySide2 --- qtpy/tests/test_qtwinextras.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qtpy/tests/test_qtwinextras.py b/qtpy/tests/test_qtwinextras.py index 4e349a8f..77e5c282 100644 --- a/qtpy/tests/test_qtwinextras.py +++ b/qtpy/tests/test_qtwinextras.py @@ -18,7 +18,8 @@ def test_qtwinextras(): assert QtWinExtras.QWinTaskbarProgress is not None assert QtWinExtras.QWinThumbnailToolBar is not None assert QtWinExtras.QWinThumbnailToolButton is not None - assert QtWinExtras.QtWin is not None + if not PYSIDE2: # See https://bugreports.qt.io/browse/PYSIDE-1047 + assert QtWinExtras.QtWin is not None if PYSIDE2: assert QtWinExtras.QWinColorizationChangeEvent is not None