diff options
author | Damien George <damien.p.george@gmail.com> | 2017-06-08 14:00:57 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-06-08 14:00:57 +1000 |
commit | fde54350a8d740308d12c2ea4c65fa5bea4f186a (patch) | |
tree | 33b4b8b15745e98182977f20ed61c38278176db0 /tests/float/math_fun_bool.py | |
parent | d80c951f719ee342da1a7ba5ff63b134b46ff1f2 (diff) | |
download | micropython-fde54350a8d740308d12c2ea4c65fa5bea4f186a.tar.gz micropython-fde54350a8d740308d12c2ea4c65fa5bea4f186a.zip |
tests/float: Convert "sys.exit()" to "raise SystemExit".
The latter is shorter and simpler because it doesn't require importing the
sys module.
Diffstat (limited to 'tests/float/math_fun_bool.py')
-rw-r--r-- | tests/float/math_fun_bool.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/float/math_fun_bool.py b/tests/float/math_fun_bool.py index 57232857ab..30ab14a522 100644 --- a/tests/float/math_fun_bool.py +++ b/tests/float/math_fun_bool.py @@ -4,8 +4,7 @@ try: from math import isfinite, isnan, isinf except ImportError: print("SKIP") - import sys - sys.exit() + raise SystemExit test_values = [1, 0, -1, 1.0, 0.0, -1.0, float('NaN'), float('Inf'), -float('NaN'), -float('Inf')] |