aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtGui
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtGui')
-rw-r--r--sources/pyside2/tests/QtGui/bug_367.py4
-rw-r--r--sources/pyside2/tests/QtGui/bug_660.py5
-rw-r--r--sources/pyside2/tests/QtGui/bug_740.py5
-rw-r--r--sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/pyside_reload_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qcursor_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qfontmetrics_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qicon_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qitemselection_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qkeysequence_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qopenglbuffer_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qopenglwindow_test.py3
-rw-r--r--sources/pyside2/tests/QtGui/qpdfwriter_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qpixelformat_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qpixmap_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qpixmapcache_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qrasterwindow_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qregion_test.py5
-rw-r--r--sources/pyside2/tests/QtGui/qstylehints_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/qtextline_test.py4
-rw-r--r--sources/pyside2/tests/QtGui/timed_app_and_patching_test.py4
23 files changed, 97 insertions, 5 deletions
diff --git a/sources/pyside2/tests/QtGui/bug_367.py b/sources/pyside2/tests/QtGui/bug_367.py
index 8f03d95ac..0d917e62b 100644
--- a/sources/pyside2/tests/QtGui/bug_367.py
+++ b/sources/pyside2/tests/QtGui/bug_367.py
@@ -28,8 +28,12 @@
''' Test bug 367: http://bugs.openbossa.org/show_bug.cgi?id=367'''
+import os
import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2 import QtCore,QtGui
diff --git a/sources/pyside2/tests/QtGui/bug_660.py b/sources/pyside2/tests/QtGui/bug_660.py
index e19835a3a..f2a50fd3c 100644
--- a/sources/pyside2/tests/QtGui/bug_660.py
+++ b/sources/pyside2/tests/QtGui/bug_660.py
@@ -26,7 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
import py3kcompat as py3k
from PySide2.QtGui import QStandardItemModel, QStandardItem
diff --git a/sources/pyside2/tests/QtGui/bug_740.py b/sources/pyside2/tests/QtGui/bug_740.py
index 5ea45e7f2..b01ac4a94 100644
--- a/sources/pyside2/tests/QtGui/bug_740.py
+++ b/sources/pyside2/tests/QtGui/bug_740.py
@@ -26,7 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
import py3kcompat as py3k
from helper import UsesQApplication
from PySide2.QtCore import QSize
diff --git a/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py b/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py
index ad2c043a0..e2ea09706 100644
--- a/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py
+++ b/sources/pyside2/tests/QtGui/float_to_int_implicit_conversion_test.py
@@ -28,8 +28,12 @@
'''Test cases for QImage'''
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from PySide2.QtGui import QImage, qRgb
from helper import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/pyside_reload_test.py b/sources/pyside2/tests/QtGui/pyside_reload_test.py
index cd045047a..b4e98c693 100644
--- a/sources/pyside2/tests/QtGui/pyside_reload_test.py
+++ b/sources/pyside2/tests/QtGui/pyside_reload_test.py
@@ -27,9 +27,12 @@
#############################################################################
import os
-import sys
import shutil
+import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
import py3kcompat as py3k
orig_path = os.path.join(os.path.dirname(__file__))
diff --git a/sources/pyside2/tests/QtGui/qcursor_test.py b/sources/pyside2/tests/QtGui/qcursor_test.py
index da41fa03a..a19b66a1d 100644
--- a/sources/pyside2/tests/QtGui/qcursor_test.py
+++ b/sources/pyside2/tests/QtGui/qcursor_test.py
@@ -30,7 +30,12 @@
http://bugs.openbossa.org/show_bug.cgi?id=630
'''
+import os
+import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from PySide2.QtGui import QBitmap, QCursor, QPixmap
from helper import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py b/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py
index bc25be308..e6307a6ed 100644
--- a/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py
+++ b/sources/pyside2/tests/QtGui/qdatastream_gui_operators_test.py
@@ -28,8 +28,11 @@
##
#############################################################################
-import unittest
+import os
import sys
+import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
from PySide2.QtCore import QDataStream, QByteArray, QIODevice, Qt
from PySide2.QtGui import QPixmap, QColor
diff --git a/sources/pyside2/tests/QtGui/qfontmetrics_test.py b/sources/pyside2/tests/QtGui/qfontmetrics_test.py
index 4390678bb..012b9af84 100644
--- a/sources/pyside2/tests/QtGui/qfontmetrics_test.py
+++ b/sources/pyside2/tests/QtGui/qfontmetrics_test.py
@@ -29,7 +29,12 @@
'''Tests for inject codes and modifications on QFontMetrics
and QFontMetricsF'''
+import os
+import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from PySide2.QtGui import QFont, QFontMetrics, QFontMetricsF
from PySide2.QtCore import QRect, QRectF, Qt, QSize, QSizeF
from helper import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/qicon_test.py b/sources/pyside2/tests/QtGui/qicon_test.py
index 3dab7c814..42b3f48fa 100644
--- a/sources/pyside2/tests/QtGui/qicon_test.py
+++ b/sources/pyside2/tests/QtGui/qicon_test.py
@@ -26,8 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import TimedQApplication
from PySide2.QtGui import QIcon
diff --git a/sources/pyside2/tests/QtGui/qitemselection_test.py b/sources/pyside2/tests/QtGui/qitemselection_test.py
index e77813db1..6c1d7d07f 100644
--- a/sources/pyside2/tests/QtGui/qitemselection_test.py
+++ b/sources/pyside2/tests/QtGui/qitemselection_test.py
@@ -26,8 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtCore import QItemSelection
from PySide2.QtGui import QStandardItemModel
diff --git a/sources/pyside2/tests/QtGui/qkeysequence_test.py b/sources/pyside2/tests/QtGui/qkeysequence_test.py
index a1a0d11d5..1a815c6d7 100644
--- a/sources/pyside2/tests/QtGui/qkeysequence_test.py
+++ b/sources/pyside2/tests/QtGui/qkeysequence_test.py
@@ -26,8 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from PySide2.QtCore import Qt
from PySide2.QtGui import QKeySequence
diff --git a/sources/pyside2/tests/QtGui/qopenglbuffer_test.py b/sources/pyside2/tests/QtGui/qopenglbuffer_test.py
index eb11dc0b9..b05079d74 100644
--- a/sources/pyside2/tests/QtGui/qopenglbuffer_test.py
+++ b/sources/pyside2/tests/QtGui/qopenglbuffer_test.py
@@ -28,9 +28,12 @@
'''Unit tests for QOpenGLBuffer'''
-import unittest
import ctypes
+import os
import sys
+import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
from helper import UsesQApplication
from PySide2.QtGui import QOpenGLBuffer
diff --git a/sources/pyside2/tests/QtGui/qopenglwindow_test.py b/sources/pyside2/tests/QtGui/qopenglwindow_test.py
index b20db90b6..2f846265e 100644
--- a/sources/pyside2/tests/QtGui/qopenglwindow_test.py
+++ b/sources/pyside2/tests/QtGui/qopenglwindow_test.py
@@ -28,9 +28,12 @@
'''Unit test for QOpenGLContext, QOpenGLTexture, QOpenGLWindow and related classes'''
+import os
import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtCore import QSize, QTimer, Qt
diff --git a/sources/pyside2/tests/QtGui/qpdfwriter_test.py b/sources/pyside2/tests/QtGui/qpdfwriter_test.py
index da00ff0c9..2ee748194 100644
--- a/sources/pyside2/tests/QtGui/qpdfwriter_test.py
+++ b/sources/pyside2/tests/QtGui/qpdfwriter_test.py
@@ -26,7 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtGui import QPageLayout, QPageSize, QPdfWriter, QTextDocument
from PySide2.QtCore import QDir, QMarginsF, QTemporaryFile
diff --git a/sources/pyside2/tests/QtGui/qpixelformat_test.py b/sources/pyside2/tests/QtGui/qpixelformat_test.py
index 563f36cdf..5689ca0e0 100644
--- a/sources/pyside2/tests/QtGui/qpixelformat_test.py
+++ b/sources/pyside2/tests/QtGui/qpixelformat_test.py
@@ -28,8 +28,12 @@
'''Unit test for QPixelFormat'''
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtCore import QSize, Qt
from PySide2.QtGui import QColor, QImage, QPixelFormat
diff --git a/sources/pyside2/tests/QtGui/qpixmap_test.py b/sources/pyside2/tests/QtGui/qpixmap_test.py
index 8f853a38a..575abb096 100644
--- a/sources/pyside2/tests/QtGui/qpixmap_test.py
+++ b/sources/pyside2/tests/QtGui/qpixmap_test.py
@@ -26,9 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
-import os
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtGui import *
from PySide2.QtCore import *
diff --git a/sources/pyside2/tests/QtGui/qpixmapcache_test.py b/sources/pyside2/tests/QtGui/qpixmapcache_test.py
index 7a2073b12..d10dff36f 100644
--- a/sources/pyside2/tests/QtGui/qpixmapcache_test.py
+++ b/sources/pyside2/tests/QtGui/qpixmapcache_test.py
@@ -26,7 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtGui import QPixmapCache, QPixmap
diff --git a/sources/pyside2/tests/QtGui/qrasterwindow_test.py b/sources/pyside2/tests/QtGui/qrasterwindow_test.py
index 887982111..bd1cf24ff 100644
--- a/sources/pyside2/tests/QtGui/qrasterwindow_test.py
+++ b/sources/pyside2/tests/QtGui/qrasterwindow_test.py
@@ -28,8 +28,12 @@
'''Unit test for QBackingStore, QRasterWindow and QStaticText'''
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtCore import QEvent, QPoint, QRect, QSize, QTimer, Qt
from PySide2.QtGui import QColor, QBackingStore, QPaintDevice, QPainter, QWindow, QPaintDeviceWindow, QRasterWindow, QRegion, QStaticText
diff --git a/sources/pyside2/tests/QtGui/qregion_test.py b/sources/pyside2/tests/QtGui/qregion_test.py
index 72cec4bd5..beb622e6c 100644
--- a/sources/pyside2/tests/QtGui/qregion_test.py
+++ b/sources/pyside2/tests/QtGui/qregion_test.py
@@ -26,8 +26,11 @@
##
#############################################################################
-import unittest
+import os
import sys
+import unittest
+
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
from PySide2.QtGui import QRegion
from PySide2.QtCore import QPoint
diff --git a/sources/pyside2/tests/QtGui/qstylehints_test.py b/sources/pyside2/tests/QtGui/qstylehints_test.py
index 1623bf746..8f10005a9 100644
--- a/sources/pyside2/tests/QtGui/qstylehints_test.py
+++ b/sources/pyside2/tests/QtGui/qstylehints_test.py
@@ -28,8 +28,12 @@
'''Unit test for QStyleHints'''
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import UsesQApplication
from PySide2.QtGui import QStyleHints
diff --git a/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py b/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py
index b9d87ff2b..f13ba884e 100644
--- a/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py
+++ b/sources/pyside2/tests/QtGui/qtextdocumentwriter_test.py
@@ -26,8 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from PySide2.QtGui import QTextDocumentWriter, QTextDocument
from PySide2.QtCore import QBuffer
import py3kcompat as py3k
diff --git a/sources/pyside2/tests/QtGui/qtextline_test.py b/sources/pyside2/tests/QtGui/qtextline_test.py
index b7d308889..b4185f05f 100644
--- a/sources/pyside2/tests/QtGui/qtextline_test.py
+++ b/sources/pyside2/tests/QtGui/qtextline_test.py
@@ -26,8 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from PySide2.QtGui import QTextLayout
from helper import UsesQApplication
diff --git a/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py b/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py
index 014aeec1a..1b33c6ff5 100644
--- a/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py
+++ b/sources/pyside2/tests/QtGui/timed_app_and_patching_test.py
@@ -26,8 +26,12 @@
##
#############################################################################
+import os
+import sys
import unittest
+sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "util"))
+
from helper import TimedQApplication
from PySide2.support import deprecated
from PySide2.support.signature import importhandler