tests: Restore memoryview1 test to micropython version
we changed this way back at fab634e3ee
for Rosie Pi and the merge
mangled it. I think at this point it makes sense just to take upstream's
version again.
This commit is contained in:
parent
f0bb26d70f
commit
92d63b40cc
@ -54,23 +54,6 @@ print(list(m[1:-1]))
|
||||
m[2] = 6
|
||||
print(a)
|
||||
|
||||
# invalid attribute
|
||||
try:
|
||||
memoryview(b'a').noexist
|
||||
except AttributeError:
|
||||
print('AttributeError')
|
||||
|
||||
try:
|
||||
m4[1:3] = m2[1:3]
|
||||
except ValueError:
|
||||
print("ValueError")
|
||||
|
||||
# invalid assignment on RHS
|
||||
try:
|
||||
memoryview(array.array('i'))[0:2] = b'1234'
|
||||
except ValueError:
|
||||
print('ValueError')
|
||||
|
||||
# invalid attribute
|
||||
try:
|
||||
memoryview(b'a').noexist
|
||||
|
Loading…
Reference in New Issue
Block a user