aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/qbytearray_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/qbytearray_test.py')
-rw-r--r--tests/QtCore/qbytearray_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/QtCore/qbytearray_test.py b/tests/QtCore/qbytearray_test.py
index 2c0ee87ce..34dc42f57 100644
--- a/tests/QtCore/qbytearray_test.py
+++ b/tests/QtCore/qbytearray_test.py
@@ -102,5 +102,12 @@ class QByteArrayOnQVariant(unittest.TestCase):
a = QSettings().value("some_prop", QByteArray())
self.assertEqual(type(a), QByteArray)
+class QByteArrayBug514(unittest.TestCase):
+ def testIt(self):
+ data = "foobar"
+ a = QByteArray.fromRawData(data)
+ self.assertEqual(type(a), QByteArray)
+ self.assertEqual(a.data(), data)
+
if __name__ == '__main__':
unittest.main()