From fde54350a8d740308d12c2ea4c65fa5bea4f186a Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 8 Jun 2017 14:00:57 +1000 Subject: tests/float: Convert "sys.exit()" to "raise SystemExit". The latter is shorter and simpler because it doesn't require importing the sys module. --- tests/float/builtin_float_minmax.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/float/builtin_float_minmax.py') diff --git a/tests/float/builtin_float_minmax.py b/tests/float/builtin_float_minmax.py index 42cfa6382..20ad3ddf4 100644 --- a/tests/float/builtin_float_minmax.py +++ b/tests/float/builtin_float_minmax.py @@ -3,9 +3,8 @@ try: min max except: - import sys print("SKIP") - sys.exit() + raise SystemExit print(min(0,1.0)) print(min(1.0,0)) -- cgit v1.2.3