aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/util/helper/usesqguiapplication.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/util/helper/usesqguiapplication.py')
-rw-r--r--sources/pyside6/tests/util/helper/usesqguiapplication.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/sources/pyside6/tests/util/helper/usesqguiapplication.py b/sources/pyside6/tests/util/helper/usesqguiapplication.py
deleted file mode 100644
index e02b57476..000000000
--- a/sources/pyside6/tests/util/helper/usesqguiapplication.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (C) 2022 The Qt Company Ltd.
-# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
-
-'''Helper classes and functions'''
-
-import gc
-import unittest
-
-from PySide6.QtGui import QGuiApplication
-
-
-class UsesQGuiApplication(unittest.TestCase):
- '''Helper class to provide QGuiApplication instances'''
-
- def setUp(self):
- '''Creates the QGuiApplication instance'''
-
- # Simple way of making instance a singleton
- super(UsesQGuiApplication, self).setUp()
- self.app = QGuiApplication.instance() or QGuiApplication([])
-
- def tearDown(self):
- '''Deletes the reference owned by self'''
- del self.app
- # PYSIDE-535: Need to collect garbage in PyPy to trigger deletion
- gc.collect()
- super(UsesQGuiApplication, self).tearDown()