aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2018-06-07 11:17:32 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2018-06-07 11:17:37 +0200
commit60a3b6a16304af4b1d8896a06b8407fe49f80ed2 (patch)
tree6dca986c5e439c7cb39b17643129dadb436d2fea /sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
parent33943b54e9470dc8830e94270e6521524acb2954 (diff)
parent823eea34b77ca16a545a75b55619a5ed4da38c0e (diff)
Merge branch '5.9' into 5.11
Diffstat (limited to 'sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py')
-rw-r--r--sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py b/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
index 392e6f052..867862de5 100644
--- a/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
+++ b/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
@@ -33,10 +33,11 @@
import unittest
from PySide2.QtCore import QCryptographicHash, QMessageAuthenticationCode
+import py3kcompat as py3k
class TestQMessageAuthenticationCode (unittest.TestCase):
def test(self):
- code = QMessageAuthenticationCode(QCryptographicHash.Sha1, 'bla')
+ code = QMessageAuthenticationCode(QCryptographicHash.Sha1, py3k.b('bla'))
result = code.result()
self.assertTrue(result.size() > 0)
print(result.toHex())