summaryrefslogtreecommitdiff
path: root/tests/basics/bytes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/bytes.py')
-rw-r--r--tests/basics/bytes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/bytes.py b/tests/basics/bytes.py
index d3da15c8e..1d97e6b16 100644
--- a/tests/basics/bytes.py
+++ b/tests/basics/bytes.py
@@ -8,6 +8,9 @@ print(b'\u1234')
print(bytes())
print(bytes(b'abc'))
+# make sure empty bytes is converted correctly
+print(str(bytes(), 'utf-8'))
+
a = b"123"
print(a)
print(str(a))