Commit 50786022 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

ModelTest is not yet supported by PySide2

parent 06a0c725
Pipeline #130787 failed with stage
in 1 minute and 11 seconds
......@@ -17,7 +17,7 @@ import logging.handlers
import socket
from signal import signal, SIGABRT, SIGINT, SIGTERM
from qt import QStandardPaths, QObject, QGraphicsItem
from qt import QStandardPaths, QObject, QGraphicsItem, QSize
# pylint: disable=invalid-name
......@@ -259,8 +259,24 @@ Options {stropt} take a string argument like {example}.
type.__setattr__(Debug, option, value)
if Debug.time:
Debug.time = datetime.datetime.now()
if Debug.modelTest and not Debug.modeltest_is_supported():
print('--debug=modelTest is not yet supported for pyside, use pyqt')
sys.exit(2)
return None
@staticmethod
def modeltest_is_supported():
"""Is the QT binding supported."""
try:
import sip
except ImportError:
return False
try:
_ = sip.cast(QSize(), QSize)
return True
except TypeError:
return False
@staticmethod
def str():
"""__str__ does not work with class objects"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment