tests/float: Convert "sys.exit()" to "raise SystemExit".

The latter is shorter and simpler because it doesn't require importing the
sys module.
This commit is contained in:
Damien George
2017-06-08 14:00:57 +10:00
parent d80c951f71
commit fde54350a8
13 changed files with 13 additions and 26 deletions

View File

@@ -3,9 +3,8 @@
try:
from array import array
except ImportError:
import sys
print("SKIP")
sys.exit()
raise SystemExit
print(array('f', array('h', [1, 2])))
print(array('d', array('f', [1, 2])))