We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e7ea5a commit 2f79337Copy full SHA for 2f79337
1 file changed
Lib/test/test_tstring.py
@@ -162,7 +162,7 @@ def test_template_concatenation(self):
162
t1 = t"Hello"
163
expected_msg = 'can only concatenate Template (not "str") to Template'
164
with self.assertRaises(TypeError, msg=expected_msg):
165
- _ = t1 + ", world"
+ t1 + ", world"
166
167
# Test template + template with interpolation
168
name = "Python"
@@ -175,7 +175,7 @@ def test_template_concatenation(self):
175
# Test string + template
176
expected_msg = 'can only concatenate str (not "string.templatelib.Template") to str'
177
178
- _ = "Hello, " + t"{name}"
+ "Hello, " + t"{name}"
179
180
def test_nested_templates(self):
181
# Test a template inside another template expression
0 commit comments