aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/qbytearray_concatenation_operator_test.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-29 11:18:49 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-04-29 15:56:58 +0200
commit6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch)
tree660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/QtCore/qbytearray_concatenation_operator_test.py
parent88fff87519e741a3a999b8c1545834d116859faa (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/qbytearray_concatenation_operator_test.py')
-rw-r--r--sources/pyside6/tests/QtCore/qbytearray_concatenation_operator_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside6/tests/QtCore/qbytearray_concatenation_operator_test.py b/sources/pyside6/tests/QtCore/qbytearray_concatenation_operator_test.py
index dcc3a059b..9fdfda64e 100644
--- a/sources/pyside6/tests/QtCore/qbytearray_concatenation_operator_test.py
+++ b/sources/pyside6/tests/QtCore/qbytearray_concatenation_operator_test.py
@@ -47,20 +47,21 @@ class QByteArrayConcatenationOperatorTest(unittest.TestCase):
'''Test cases for QByteArray concatenation with '+' operator'''
def testConcatQByteArrayAndPythonString(self):
- #Test concatenation of a QByteArray with a Python bytes, in this order
+ # Test concatenation of a QByteArray with a Python bytes, in this order
qba = QByteArray(bytes('foo', "UTF-8"))
result = qba + bytes('\x00bar', "UTF-8")
self.assertEqual(type(result), QByteArray)
self.assertEqual(result, bytes('foo\x00bar', "UTF-8"))
def testConcatPythonStringAndQByteArray(self):
- #Test concatenation of a Python bytes with a QByteArray, in this order
+ # Test concatenation of a Python bytes with a QByteArray, in this order
concat_python_string_add_qbytearray_worked = True
qba = QByteArray(bytes('foo', "UTF-8"))
result = bytes('bar\x00', "UTF-8") + qba
self.assertEqual(type(result), QByteArray)
self.assertEqual(result, bytes('bar\x00foo', "UTF-8"))
+
if __name__ == '__main__':
unittest.main()