Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
9e47c145
Commit
9e47c145
authored
May 07, 2016
by
Damien George
Browse files
tests: Disable memoryview tests that overflow int conversion.
They fail on builds with 32-bit word size.
parent
470c429e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/memoryview2.py
View file @
9e47c145
...
...
@@ -7,5 +7,7 @@ print(list(memoryview(array('b', [0x7f, -0x80]))))
print
(
list
(
memoryview
(
array
(
'B'
,
[
0x7f
,
0x80
,
0x81
,
0xff
]))))
print
(
list
(
memoryview
(
array
(
'h'
,
[
0x7f00
,
-
0x8000
]))))
print
(
list
(
memoryview
(
array
(
'H'
,
[
0x7f00
,
0x8000
,
0x8100
,
0xffff
]))))
print
(
list
(
memoryview
(
array
(
'i'
,
[
0x7f000000
,
-
0x80000000
]))))
print
(
list
(
memoryview
(
array
(
'I'
,
[
0x7f000000
,
0x80000000
,
0x81000000
,
0xffffffff
]))))
# these constructors give an internal overflow in uPy
#print(list(memoryview(array('i', [0x7f000000, -0x80000000]))))
#print(list(memoryview(array('I', [0x7f000000, 0x80000000, 0x81000000, 0xffffffff]))))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment