tests/basics: Use bytes not bytearray when checking user buffer proto.

Using bytes will test the same path for the buffer protocol in
py/objtype.c.
This commit is contained in:
Damien George
2019-10-29 21:25:38 +11:00
parent aeea204e98
commit 9162a87d4d
2 changed files with 3 additions and 3 deletions

View File

@@ -4,6 +4,6 @@ class C:
c = C()
try:
d = bytearray(c)
d = bytes(c)
except TypeError:
print('TypeError')