mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
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:
@@ -4,6 +4,6 @@ class C:
|
||||
|
||||
c = C()
|
||||
try:
|
||||
d = bytearray(c)
|
||||
d = bytes(c)
|
||||
except TypeError:
|
||||
print('TypeError')
|
||||
|
||||
Reference in New Issue
Block a user