summaryrefslogtreecommitdiff
path: root/tests/micropython/opt_level.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/opt_level.py')
-rw-r--r--tests/micropython/opt_level.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/micropython/opt_level.py b/tests/micropython/opt_level.py
index 5a10047f0..3213dc003 100644
--- a/tests/micropython/opt_level.py
+++ b/tests/micropython/opt_level.py
@@ -8,12 +8,12 @@ print(micropython.opt_level())
# check that the optimisation levels actually differ
micropython.opt_level(0)
-exec('print(__debug__)')
+exec("print(__debug__)")
micropython.opt_level(1)
-exec('print(__debug__)')
-exec('assert 0')
+exec("print(__debug__)")
+exec("assert 0")
# check that level 3 doesn't store line numbers
# the expected output is that any line is printed as "line 1"
micropython.opt_level(3)
-exec('try:\n xyz\nexcept NameError as er:\n import sys\n sys.print_exception(er)')
+exec("try:\n xyz\nexcept NameError as er:\n import sys\n sys.print_exception(er)")