Skip to content

Commit

Permalink
FIX: Cap
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Apr 27, 2022
1 parent 9a5559e commit 74741c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qtpy/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def assert_pyside2():
assert QtGui.QPainter is PySide2.QtGui.QPainter
assert QtWidgets.QWidget is PySide2.QtWidgets.QWidget
assert QtWebEngineWidgets.QWebEnginePage is PySide2.QtWebEngineWidgets.QWebEnginePage
assert os.environ['QT_API'] == 'PySide2'
assert os.environ['QT_API'] == 'pyside2'

def assert_pyside6():
"""
Expand All @@ -32,7 +32,7 @@ def assert_pyside6():
assert QtWidgets.QWidget is PySide6.QtWidgets.QWidget
# Only valid for qt>=6.2
# assert QtWebEngineWidgets.QWebEnginePage is PySide6.QtWebEngineCore.QWebEnginePage
assert os.environ['QT_API'] == 'PySide6'
assert os.environ['QT_API'] == 'pyside6'

def assert_pyqt5():
"""
Expand All @@ -46,7 +46,7 @@ def assert_pyqt5():
assert QtWebEngineWidgets.QWebEnginePage is PyQt5.QtWebEngineWidgets.QWebEnginePage
else:
assert QtWebEngineWidgets.QWebEnginePage is PyQt5.QtWebKitWidgets.QWebPage
assert os.environ['QT_API'] == 'PyQt5'
assert os.environ['QT_API'] == 'pyqt5'

def assert_pyqt6():
"""
Expand All @@ -56,6 +56,7 @@ def assert_pyqt6():
assert QtCore.QEvent is PyQt6.QtCore.QEvent
assert QtGui.QPainter is PyQt6.QtGui.QPainter
assert QtWidgets.QWidget is PyQt6.QtWidgets.QWidget
assert os.environ['QT_API'] == 'pyqt6'


def test_qt_api():
Expand Down

0 comments on commit 74741c9

Please sign in to comment.