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:
import math
except ImportError:
print("SKIP")
import sys
sys.exit()
raise SystemExit
for fun in (math.ceil, math.floor, math.trunc):
for x in (-1.6, -0.2, 0, 0.6, 1.4, float('inf'), float('nan')):