Skip to content

Commit 0b5f820

Browse files
committed
Fixed access to PYTEST_QT_FORCE_PYQT
1 parent 5d62b1a commit 0b5f820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytestqt/qt_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
msg = 'pytest-qt requires either PyQt4 or PySide to be installed'
2727
raise ImportError(msg)
2828

29-
PYQT_VER = os.environ.get['PYTEST_QT_FORCE_PYQT']
29+
PYQT_VER = os.environ.get('PYTEST_QT_FORCE_PYQT', '4')
3030
# backward compatibility
3131
if PYQT_VER == 'true':
3232
PYQT_VER = '4'

0 commit comments

Comments
 (0)