aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/bug_728.py
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2021-04-29 11:18:49 +0200
committerFriedemann Kleint <[email protected]>2021-04-29 15:56:58 +0200
commit6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch)
tree660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/QtWidgets/bug_728.py
parent88fff87519e741a3a999b8c1545834d116859faa (diff)
Tests: Fix some space-related flake8 warnings
Change-Id: I9b0ad08839bf1246620c557ec304dfa90882907b Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_728.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_728.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_728.py b/sources/pyside6/tests/QtWidgets/bug_728.py
index 9e1473635..4d1b37593 100644
--- a/sources/pyside6/tests/QtWidgets/bug_728.py
+++ b/sources/pyside6/tests/QtWidgets/bug_728.py
@@ -41,6 +41,8 @@ from PySide6.QtCore import QDir, QTimer
# Periodically check for the file dialog to appear and close it
dialog = None
+
+
def timerHandler():
global dialog
if dialog is not None:
@@ -48,10 +50,11 @@ def timerHandler():
else:
for widget in QApplication.topLevelWidgets():
if isinstance(widget, QDialog) and widget.isVisible():
- dialog = widget
+ dialog = widget
+
app = QApplication([])
-QTimer.singleShot(30000, app.quit) # emergency
+QTimer.singleShot(30000, app.quit) # emergency
timer = QTimer()
timer.setInterval(50)
timer.timeout.connect(timerHandler)