diff options
Diffstat (limited to 'sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py')
-rw-r--r-- | sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py | 3 |
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()) |