aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtCore/bug_938.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/tests/QtCore/bug_938.py')
-rw-r--r--sources/pyside2/tests/QtCore/bug_938.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtCore/bug_938.py b/sources/pyside2/tests/QtCore/bug_938.py
index bbac1845b..4e70a8604 100644
--- a/sources/pyside2/tests/QtCore/bug_938.py
+++ b/sources/pyside2/tests/QtCore/bug_938.py
@@ -35,14 +35,14 @@ from init_paths import init_test_paths
init_test_paths(False)
from PySide2.QtCore import *
-import py3kcompat as py3k
+
class TestBug938 (unittest.TestCase):
def testIt(self):
b = QBuffer()
b.open(QBuffer.WriteOnly)
- b.write(py3k.b("\x0023\x005"))
+ b.write(bytes("\x0023\x005", "UTF-8"))
b.close()
self.assertEqual(b.buffer().size(), 5)