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 7fc6def commit 824e1caCopy full SHA for 824e1ca
Lib/test/test_tstring.py
@@ -219,6 +219,7 @@ def test_syntax_errors(self):
219
("t'{lambda:1}'", "t-string: lambda expressions are not allowed "
220
"without parentheses"),
221
("t'{x:{;}}'", "t-string: expecting a valid expression after '{'"),
222
+ ("""t'{1:d\n}'""","t-string: newlines are not allowed in format specifiers")
223
):
224
with self.subTest(case), self.assertRaisesRegex(SyntaxError, err):
225
eval(case)
0 commit comments