summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fstring.py
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-04-12 18:21:00 (GMT)
committerGitHub <noreply@github.com>2020-04-12 18:21:00 (GMT)
commit41d5b94af44e34ac05d4cd57460ed104ccf96628 (patch)
tree564847a328b623cc02268a93fda371e0bea797b3 /Lib/test/test_fstring.py
parent402e1cdb132f384e4dcde7a3d7ec7ea1fc7ab527 (diff)
downloadcpython-41d5b94af44e34ac05d4cd57460ed104ccf96628.zip
cpython-41d5b94af44e34ac05d4cd57460ed104ccf96628.tar.gz
cpython-41d5b94af44e34ac05d4cd57460ed104ccf96628.tar.bz2
bpo-40246: Report a better error message for invalid string prefixes (GH-19476)
Diffstat (limited to 'Lib/test/test_fstring.py')
-rw-r--r--Lib/test/test_fstring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py
index 4966392..ef0ccb8 100644
--- a/Lib/test/test_fstring.py
+++ b/Lib/test/test_fstring.py
@@ -841,7 +841,7 @@ non-important content
self.assertEqual(f'{f"{y}"*3}', '555')
def test_invalid_string_prefixes(self):
- self.assertAllRaise(SyntaxError, 'unexpected EOF while parsing',
+ self.assertAllRaise(SyntaxError, 'invalid string prefix',
["fu''",
"uf''",
"Fu''",