Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
3e321f17
Commit
3e321f17
authored
Mar 11, 2017
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/misc/: Make few tests skippable.
parent
12d0731b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
6 deletions
+31
-6
tests/misc/non_compliant.py
tests/misc/non_compliant.py
+7
-2
tests/misc/print_exception.py
tests/misc/print_exception.py
+8
-3
tests/misc/recursive_data.py
tests/misc/recursive_data.py
+6
-1
tests/misc/recursive_iternext.py
tests/misc/recursive_iternext.py
+10
-0
No files found.
tests/misc/non_compliant.py
View file @
3e321f17
# tests for things that are not implemented, or have non-compliant behaviour
import
array
import
ustruct
try
:
import
array
import
ustruct
except
ImportError
:
import
sys
print
(
"SKIP"
)
sys
.
exit
()
# when super can't find self
try
:
...
...
tests/misc/print_exception.py
View file @
3e321f17
import
sys
try
:
import
uio
as
io
try
:
import
uio
as
io
except
ImportError
:
import
io
except
ImportError
:
import
io
import
sys
print
(
"SKIP"
)
sys
.
exit
()
if
hasattr
(
sys
,
'print_exception'
):
print_exception
=
sys
.
print_exception
else
:
...
...
tests/misc/recursive_data.py
View file @
3e321f17
# This tests that printing recursive data structure doesn't lead to segfault.
import
uio
as
io
try
:
import
uio
as
io
except
ImportError
:
import
sys
print
(
"SKIP"
)
sys
.
exit
()
l
=
[
1
,
2
,
3
,
None
]
l
[
-
1
]
=
l
...
...
tests/misc/recursive_iternext.py
View file @
3e321f17
# This tests that recursion with iternext doesn't lead to segfault.
try
:
enumerate
filter
map
max
zip
except
:
import
sys
print
(
"SKIP"
)
sys
.
exit
()
# We need to pick an N that is large enough to hit the recursion
# limit, but not too large that we run out of heap memory.
...
...
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