diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-29 21:25:38 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-29 22:22:37 +1100 |
commit | 9162a87d4d21ce7f682e5d4ae7703fa1b13f45e9 (patch) | |
tree | 41a815987cd8ad9110d7e52e65a1a6b76ca5be6e /tests/basics/class_misc.py | |
parent | aeea204e9802d6a175d94bdb03de428b5f1c74d1 (diff) | |
download | micropython-9162a87d4d21ce7f682e5d4ae7703fa1b13f45e9.tar.gz micropython-9162a87d4d21ce7f682e5d4ae7703fa1b13f45e9.zip |
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.
Diffstat (limited to 'tests/basics/class_misc.py')
-rw-r--r-- | tests/basics/class_misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/class_misc.py b/tests/basics/class_misc.py index 82b9b3479e..34b1a3bc64 100644 --- a/tests/basics/class_misc.py +++ b/tests/basics/class_misc.py @@ -4,6 +4,6 @@ class C: c = C() try: - d = bytearray(c) + d = bytes(c) except TypeError: print('TypeError') |