Skip to content

Commit 2f79337

Browse files
committed
Two minor tweaks
1 parent 7e7ea5a commit 2f79337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_tstring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def test_template_concatenation(self):
162162
t1 = t"Hello"
163163
expected_msg = 'can only concatenate Template (not "str") to Template'
164164
with self.assertRaises(TypeError, msg=expected_msg):
165-
_ = t1 + ", world"
165+
t1 + ", world"
166166

167167
# Test template + template with interpolation
168168
name = "Python"
@@ -175,7 +175,7 @@ def test_template_concatenation(self):
175175
# Test string + template
176176
expected_msg = 'can only concatenate str (not "string.templatelib.Template") to str'
177177
with self.assertRaises(TypeError, msg=expected_msg):
178-
_ = "Hello, " + t"{name}"
178+
"Hello, " + t"{name}"
179179

180180
def test_nested_templates(self):
181181
# Test a template inside another template expression

0 commit comments

Comments
 (0)