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/float_struct.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/float_struct.py')
-rw-r--r-- | tests/float/float_struct.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/float/float_struct.py b/tests/float/float_struct.py index a36ccce38b..c4c186b89e 100644 --- a/tests/float/float_struct.py +++ b/tests/float/float_struct.py @@ -5,9 +5,8 @@ try: except: import struct except ImportError: - import sys print("SKIP") - sys.exit() + raise SystemExit i = 1. + 1/2 # TODO: it looks like '=' format modifier is not yet supported |