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

@@ -4,8 +4,7 @@ try:
from math import *
except ImportError:
print("SKIP")
import sys
sys.exit()
raise SystemExit
test_values = [-100., -1.23456, -1, -0.5, 0.0, 0.5, 1.23456, 100.]
test_values_small = [-10., -1.23456, -1, -0.5, 0.0, 0.5, 1.23456, 10.] # so we don't overflow 32-bit precision