Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
35443610
Commit
35443610
authored
Apr 15, 2014
by
Damien George
Browse files
travis: More tests debugging.
parent
45b4cc77
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/basics/memoryerror.py
View file @
35443610
l
=
list
(
range
(
10000
))
hex
(
1
)
try
:
hex
(
1
)
except
NameError
:
print
(
"NameError"
)
try
:
100000000
*
l
except
MemoryError
:
...
...
tests/run-tests
View file @
35443610
...
...
@@ -70,6 +70,8 @@ for test_file in tests:
rm_f
(
os
.
path
.
basename
(
test_file
+
".exp"
))
rm_f
(
os
.
path
.
basename
(
test_file
+
".out"
))
else
:
print
(
'EXP|{}|'
.
format
(
output_expected
))
print
(
'OUT|{}|'
.
format
(
output_mupy
))
with
open
(
os
.
path
.
basename
(
test_file
+
".exp"
),
"w"
)
as
f
:
f
.
write
(
str
(
output_expected
,
"ascii"
))
with
open
(
os
.
path
.
basename
(
test_file
+
".out"
),
"w"
)
as
f
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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