summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bytearray_construct.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/bytearray_construct.py')
-rw-r--r--tests/basics/bytearray_construct.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/bytearray_construct.py b/tests/basics/bytearray_construct.py
index 75fdc41178..eb4d4e641f 100644
--- a/tests/basics/bytearray_construct.py
+++ b/tests/basics/bytearray_construct.py
@@ -5,3 +5,8 @@ print(bytearray('1234', 'utf-8'))
print(bytearray('12345', 'utf-8', 'strict'))
print(bytearray((1, 2)))
print(bytearray([1, 2]))
+
+try:
+ print(bytearray('1234'))
+except TypeError:
+ print("TypeError")