summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_endswith_upy.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_endswith_upy.py')
-rw-r--r--tests/basics/string_endswith_upy.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/string_endswith_upy.py b/tests/basics/string_endswith_upy.py
new file mode 100644
index 0000000000..06a4e71d2c
--- /dev/null
+++ b/tests/basics/string_endswith_upy.py
@@ -0,0 +1,6 @@
+# MicroPython doesn't support tuple argument
+
+try:
+ "foobar".endswith(("bar", "sth"))
+except TypeError:
+ print("TypeError")