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
d709622b
Commit
d709622b
authored
Jun 24, 2015
by
Daniel Campora
Browse files
tests: Adapt basics/memoryerror.py for ports with lower heap sizes.
parent
e64afde0
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/basics/memoryerror.py
View file @
d709622b
l
=
list
(
range
(
1000
0
))
l
=
list
(
range
(
1000
))
try
:
100000000
*
l
100000000
0
*
l
except
MemoryError
:
print
(
'MemoryError'
)
print
(
len
(
l
),
l
[
0
],
l
[
-
1
])
tests/basics/memoryerror.py.exp
View file @
d709622b
MemoryError
1000
0
0 999
9
1000 0 999
Write
Preview
Markdown
is supported
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