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:
@@ -1,9 +1,8 @@
|
||||
try:
|
||||
from array import array
|
||||
except ImportError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
raise SystemExit
|
||||
|
||||
def test(a):
|
||||
print(a)
|
||||
|
||||
Reference in New Issue
Block a user