diff options
Diffstat (limited to 'sources/pyside6/tests/util')
| -rw-r--r-- | sources/pyside6/tests/util/helper/docmodifier.py | 12 | ||||
| -rw-r--r-- | sources/pyside6/tests/util/helper/usesqapplication.py | 1 | ||||
| -rw-r--r-- | sources/pyside6/tests/util/processtimer.py | 2 |
3 files changed, 8 insertions, 7 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 diff --git a/sources/pyside6/tests/util/processtimer.py b/sources/pyside6/tests/util/processtimer.py index fb38943c8..e471cf167 100644 --- a/sources/pyside6/tests/util/processtimer.py +++ b/sources/pyside6/tests/util/processtimer.py @@ -27,7 +27,7 @@ class ProcessTimer(object): def waitfor(self): time_passed = 0 - while(self.proc.poll() is None and time_passed < self.timeout): + while (self.proc.poll() is None and time_passed < self.timeout): time_passed = time_passed + 1 time.sleep(1) |
