mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
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:
@@ -4,8 +4,7 @@ try:
|
||||
from cmath import *
|
||||
except ImportError:
|
||||
print("SKIP")
|
||||
import sys
|
||||
sys.exit()
|
||||
raise SystemExit
|
||||
|
||||
# make sure these constants exist in cmath
|
||||
print("%.5g" % e)
|
||||
|
||||
Reference in New Issue
Block a user