diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-09 11:23:48 +0100 |
|---|---|---|
| committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-12 09:07:04 +0100 |
| commit | 86bea038625367f5e4f0898c3312ecb7ded1ada4 (patch) | |
| tree | cf8ca4da1b3f3ff193e153b082d3214a1ebdfa08 /sources/pyside6/tests/pysidetest/snake_case_test.py | |
| parent | 3496f7bc309a139a01d0a423a2bf7157dfd9478e (diff) | |
tests: handle unused imports and fix type issues
Many modules were imported but unused in our tests.
Additionally, some type hint issues were solved.
Pick-to: 6.8
Change-Id: Ic2368690e9a6ce0fffea812206185aa4f3dc3c58
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/snake_case_test.py')
| -rw-r--r-- | sources/pyside6/tests/pysidetest/snake_case_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/pyside6/tests/pysidetest/snake_case_test.py b/sources/pyside6/tests/pysidetest/snake_case_test.py index f764bc6e1..bdcd996c4 100644 --- a/sources/pyside6/tests/pysidetest/snake_case_test.py +++ b/sources/pyside6/tests/pysidetest/snake_case_test.py @@ -16,21 +16,21 @@ PYSIDE-2029: Tests that snake_case is isolated from imported modules """ is_pypy = hasattr(sys, "pypy_version_info") -from PySide6.QtCore import QSize -from PySide6.QtWidgets import QWidget, QSpinBox +from PySide6.QtWidgets import QWidget if not is_pypy: - from __feature__ import snake_case + from __feature__ import snake_case # noqa from helper.usesqapplication import UsesQApplication import snake_case_sub + @unittest.skipIf(is_pypy, "__feature__ cannot yet be used with PyPy") class SnakeCaseNoPropagateTest(UsesQApplication): def testSnakeCase(self): # this worked widget = QWidget() - check = widget.size_hint + check = widget.size_hint # noqa snake_case_sub.test_no_snake_case() |
