summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/cmath_fun_special.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-08 14:00:57 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-08 14:00:57 +1000
commitfde54350a8d740308d12c2ea4c65fa5bea4f186a (patch)
tree33b4b8b15745e98182977f20ed61c38278176db0 /tests/float/cmath_fun_special.py
parentd80c951f719ee342da1a7ba5ff63b134b46ff1f2 (diff)
downloadmicropython-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/cmath_fun_special.py')
-rw-r--r--tests/float/cmath_fun_special.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/float/cmath_fun_special.py b/tests/float/cmath_fun_special.py
index 422964dd75..471fda8c0d 100644
--- a/tests/float/cmath_fun_special.py
+++ b/tests/float/cmath_fun_special.py
@@ -5,8 +5,7 @@ try:
log10
except (ImportError, NameError):
print("SKIP")
- import sys
- sys.exit()
+ raise SystemExit
test_values_non_zero = []
base_values = (0.0, 0.5, 1.2345, 10.)