diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-28 10:56:58 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-11-28 11:43:03 +0100 |
| commit | ea5ce2e4080a99c43b9a330e34588fb1f25c7e45 (patch) | |
| tree | 603f71391656bfde3690fe18b916cd4bf0ef2ad1 /sources/pyside6/tests/util/helper | |
| parent | 3ad6f139ddd792b24e8c15c847f3e5db3eac3bf3 (diff) | |
Tests: Fix some flake warnings
Mostly spacing related.
Pick-to: 6.6
Change-Id: I748a8a06f456c5d4bafb94c397c43b3b2ee9e3e9
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/tests/util/helper')
| -rw-r--r-- | sources/pyside6/tests/util/helper/docmodifier.py | 12 | ||||
| -rw-r--r-- | sources/pyside6/tests/util/helper/usesqapplication.py | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/sources/pyside6/tests/util/helper/docmodifier.py b/sources/pyside6/tests/util/helper/docmodifier.py index 5a2421609..cfb665640 100644 --- a/sources/pyside6/tests/util/helper/docmodifier.py +++ b/sources/pyside6/tests/util/helper/docmodifier.py @@ -83,9 +83,9 @@ if __name__ == '__main__': doc_filter = lambda x: x.startswith('test') doc_suffix = 'suffix' - assert(Implementing.testBase.__doc__ == 'prefixbasesuffix') - assert(Implementing.testWithoutDoc.__doc__ == None) - assert(OnlySuffix.testBase.__doc__ == 'basesuffix') - assert(OnlySuffix.testWithoutDoc.__doc__ == None) - assert(OnlyPrefix.testBase.__doc__ == 'prefixbase') - assert(OnlyPrefix.testWithoutDoc.__doc__ == None) + assert (Implementing.testBase.__doc__ == 'prefixbasesuffix') + assert (Implementing.testWithoutDoc.__doc__ == None) + assert (OnlySuffix.testBase.__doc__ == 'basesuffix') + assert (OnlySuffix.testWithoutDoc.__doc__ == None) + assert (OnlyPrefix.testBase.__doc__ == 'prefixbase') + assert (OnlyPrefix.testWithoutDoc.__doc__ == None) diff --git a/sources/pyside6/tests/util/helper/usesqapplication.py b/sources/pyside6/tests/util/helper/usesqapplication.py index d6d070c69..f62e320f4 100644 --- a/sources/pyside6/tests/util/helper/usesqapplication.py +++ b/sources/pyside6/tests/util/helper/usesqapplication.py @@ -12,6 +12,7 @@ import unittest # This should work with every compatible library. # Replaces the QtGui and QtCore versions as well. + class UsesQApplication(unittest.TestCase): '''Helper class to provide Q(Core|Gui|)Application instances Just connect or call self.exit_app_cb. When called, will ask |
