aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-12-30 03:25:25 +0100
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-01-05 10:18:35 +0100
commitaeed3d2ec76a74ba98441338c235ecc02281e347 (patch)
treef69264a062fa5124748f14118b87fe4c18225f09 /sources/pyside6/tests/QtWidgets
parent2de3a763fa18d5c30c2cff25057f1b81ceeed231 (diff)
tests: remove old files and rewrite python 2
Some utilities from the tests directory were still around, and are not currently used. Additionally, there were still some old non active tests with Python 2 directives; updating them in case we reactivated them. Pick-to: 6.0 Change-Id: I24aff3396041aa780dab94e70793cb62adea2b3c Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets')
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_711.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_711.py b/sources/pyside6/tests/QtWidgets/bug_711.py
index bf6516a0a..9ed49019e 100644
--- a/sources/pyside6/tests/QtWidgets/bug_711.py
+++ b/sources/pyside6/tests/QtWidgets/bug_711.py
@@ -37,16 +37,11 @@ init_test_paths(False)
from PySide6.QtGui import QAction
from PySide6.QtWidgets import QToolBar, QApplication, QToolButton
-try:
- xrange
-except NameError:
- xrange = range # py3k
-
class TestLabelPixmap(unittest.TestCase):
def testReference(self):
toolbar = QToolBar()
- for i in xrange(20):
+ for i in range(20):
toolbar.addAction(QAction("Action %d" % i, None))
buttons = toolbar.findChildren(QToolButton, "")