summaryrefslogtreecommitdiff
path: root/tests/basics/string_find.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_find.py')
-rw-r--r--tests/basics/string_find.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/string_find.py b/tests/basics/string_find.py
index df65fd6e5..4a206eb0e 100644
--- a/tests/basics/string_find.py
+++ b/tests/basics/string_find.py
@@ -21,3 +21,8 @@ print("0000".find('-1', 3))
print("0000".find('1', 3))
print("0000".find('1', 4))
print("0000".find('1', 5))
+
+try:
+ 'abc'.find(1)
+except TypeError:
+ print('TypeError')