With the aim of getting consistency, and removing the need to learn an additional term, replace uses of uPy/uPython with MPy/MicroPython. Rule of thumb was to use "MPy" abbreviation where "CPy" is used nearby, but the full word MicroPython otherwise. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
31 lines
586 B
Python
31 lines
586 B
Python
# parser tests
|
|
|
|
try:
|
|
compile
|
|
except NameError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
# completely empty string
|
|
# MPy and CPy differ for this case
|
|
#try:
|
|
# compile("", "stdin", "single")
|
|
#except SyntaxError:
|
|
# print("SyntaxError")
|
|
try:
|
|
compile("", "stdin", "eval")
|
|
except SyntaxError:
|
|
print("SyntaxError")
|
|
compile("", "stdin", "exec")
|
|
|
|
# empty continued line
|
|
try:
|
|
compile("\\\n", "stdin", "single")
|
|
except SyntaxError:
|
|
print("SyntaxError")
|
|
try:
|
|
compile("\\\n", "stdin", "eval")
|
|
except SyntaxError:
|
|
print("SyntaxError")
|
|
compile("\\\n", "stdin", "exec")
|