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
eed2f36a
Commit
eed2f36a
authored
Dec 06, 2015
by
Paul Sokolovsky
Browse files
tests/run-tests: Allow to skip complex tests if it's not compiled in.
parent
082b1212
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/run-tests
View file @
eed2f36a
...
...
@@ -182,6 +182,7 @@ def run_tests(pyb, tests, args):
skip_tests
.
add
(
'cmdline/cmd_showbc.py'
)
upy_byteorder
=
run_micropython
(
pyb
,
args
,
'feature_check/byteorder.py'
)
has_complex
=
run_micropython
(
pyb
,
args
,
'feature_check/complex.py'
)
==
b
'complex
\n
'
cpy_byteorder
=
subprocess
.
check_output
([
CPYTHON3
,
'feature_check/byteorder.py'
])
skip_endian
=
(
upy_byteorder
!=
cpy_byteorder
)
...
...
@@ -189,6 +190,12 @@ def run_tests(pyb, tests, args):
if
os
.
getenv
(
'TRAVIS'
)
==
'true'
:
skip_tests
.
add
(
'basics/memoryerror.py'
)
if
not
has_complex
:
skip_tests
.
add
(
'float/complex1.py'
)
skip_tests
.
add
(
'float/int_big_float.py'
)
skip_tests
.
add
(
'float/true_value.py'
)
skip_tests
.
add
(
'float/types.py'
)
# Some tests shouldn't be run on pyboard
if
pyb
is
not
None
:
skip_tests
.
add
(
'basics/exception_chain.py'
)
# warning is not printed
...
...
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