diff options
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/qlayout_ref_test.py')
-rw-r--r-- | sources/pyside2/tests/QtWidgets/qlayout_ref_test.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtWidgets/qlayout_ref_test.py b/sources/pyside2/tests/QtWidgets/qlayout_ref_test.py index ece5626a3..9f0b4cca3 100644 --- a/sources/pyside2/tests/QtWidgets/qlayout_ref_test.py +++ b/sources/pyside2/tests/QtWidgets/qlayout_ref_test.py @@ -28,14 +28,20 @@ '''Test cases for QLayout handling of child widgets references''' -import unittest +import os +import sys from sys import getrefcount +import unittest + +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from init_paths import init_test_paths +init_test_paths(False) from PySide2.QtWidgets import QHBoxLayout, QVBoxLayout, QGridLayout, QWidget from PySide2.QtWidgets import QStackedLayout, QFormLayout from PySide2.QtWidgets import QApplication, QPushButton, QLabel -from helper import UsesQApplication +from helper.usesqapplication import UsesQApplication class SaveReference(UsesQApplication): '''Test case to check if QLayout-derived classes increment the refcount |