Skip to content

Commit 6ba0045

Browse files
committed
Add two more tests
1 parent 84be0c4 commit 6ba0045

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_string_literals.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ def test_eval_str_unicode(self):
100100
'\U00100000\U0010ffff\U0010fffd',
101101
'ä',
102102
'\\ä',
103+
"\\П",
104+
"áàäéèęöő.\\n",
103105
):
104106
with self.subTest(s=s):
105-
self.assertEqual(eval(f""" '{s}' """), s)
107+
self.assertEqual(eval(f"{s!r}"), s)
106108

107109
def test_eval_str_incomplete(self):
108110
self.assertRaises(SyntaxError, eval, r""" '\x' """)

0 commit comments

Comments
 (0)