diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-29 11:18:49 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-04-29 15:56:58 +0200 |
commit | 6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch) | |
tree | 660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/QtCore/unicode_test.py | |
parent | 88fff87519e741a3a999b8c1545834d116859faa (diff) |
Tests: Fix some space-related flake8 warnings
Change-Id: I9b0ad08839bf1246620c557ec304dfa90882907b
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside6/tests/QtCore/unicode_test.py')
-rw-r--r-- | sources/pyside6/tests/QtCore/unicode_test.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtCore/unicode_test.py b/sources/pyside6/tests/QtCore/unicode_test.py index 1d3a729fa..18910be29 100644 --- a/sources/pyside6/tests/QtCore/unicode_test.py +++ b/sources/pyside6/tests/QtCore/unicode_test.py @@ -43,6 +43,7 @@ init_test_paths(False) from PySide6.QtCore import QObject from PySide6.QtCore import QByteArray + class UnicodeConversion(unittest.TestCase): '''Test case for QString to/from Python Unicode conversion''' @@ -53,17 +54,18 @@ class UnicodeConversion(unittest.TestCase): pass def testSetRegularStringRetrieveUnicode(self): - #Set regular Python string retrieve unicode + # Set regular Python string retrieve unicode obj = QObject() obj.setObjectName('test') self.assertEqual(obj.objectName(), 'test') def testSetUnicodeRetrieveUnicode(self): - #Set Python unicode string and retrieve unicode + # Set Python unicode string and retrieve unicode obj = QObject() obj.setObjectName('ümlaut') self.assertEqual(obj.objectName(), 'ümlaut') + if __name__ == '__main__': unittest.main() |