Files
TencentOS-tiny/components/language/micropython/tests/basics/string_endswith_upy.py
2022-09-29 12:10:37 +08:00

7 lines
130 B
Python

# MicroPython doesn't support tuple argument
try:
"foobar".endswith(("bar", "sth"))
except TypeError:
print("TypeError")