summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/string_join.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_join.py')
-rw-r--r--tests/basics/string_join.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/basics/string_join.py b/tests/basics/string_join.py
index b8694c01e0..82f1b799a0 100644
--- a/tests/basics/string_join.py
+++ b/tests/basics/string_join.py
@@ -14,6 +14,11 @@ print(','.join('abc' for i in range(5)))
print(b','.join([b'abc', b'123']))
try:
+ ''.join(None)
+except TypeError:
+ print("TypeError")
+
+try:
print(b','.join(['abc', b'123']))
except TypeError:
print("TypeError")
@@ -25,3 +30,13 @@ except TypeError:
# joined by the compiler
print("a" "b")
+print("a" '''b''')
+print("a" # inline comment
+ "b")
+print("a" \
+ "b")
+
+# the following should not be joined by the compiler
+x = 'a'
+'b'
+print(x)