aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py')
-rw-r--r--sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py b/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
index 225807b9e..52838c95e 100644
--- a/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
+++ b/sources/pyside2/tests/QtCore/qmessageauthenticationcode_test.py
@@ -39,11 +39,10 @@ from init_paths import init_test_paths
init_test_paths(False)
from PySide2.QtCore import QCryptographicHash, QMessageAuthenticationCode
-import py3kcompat as py3k
class TestQMessageAuthenticationCode (unittest.TestCase):
def test(self):
- code = QMessageAuthenticationCode(QCryptographicHash.Sha1, py3k.b('bla'))
+ code = QMessageAuthenticationCode(QCryptographicHash.Sha1, bytes('bla', "UTF-8"))
result = code.result()
self.assertTrue(result.size() > 0)
print(result.toHex())