summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-11 15:07:39 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-11 15:07:39 (GMT)
commitb52a74b5171f66bf38f7373e50c8515f2e6ab587 (patch)
tree5d9214da100d9d5721ee92927272cda510d7fb04 /Lib
parent6a57c08dc828ff8512c047c97e7c7edfb0abbc74 (diff)
downloadcpython-b52a74b5171f66bf38f7373e50c8515f2e6ab587.zip
cpython-b52a74b5171f66bf38f7373e50c8515f2e6ab587.tar.gz
cpython-b52a74b5171f66bf38f7373e50c8515f2e6ab587.tar.bz2
#2816: clarify error messages for EOF while scanning strings.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_eof.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_eof.py b/Lib/test/test_eof.py
index 4d4c03b..763917f 100644
--- a/Lib/test/test_eof.py
+++ b/Lib/test/test_eof.py
@@ -6,7 +6,7 @@ from test import test_support
class EOFTestCase(unittest.TestCase):
def test_EOFC(self):
- expect = "EOL while scanning single-quoted string (<string>, line 1)"
+ expect = "EOL while scanning string literal (<string>, line 1)"
try:
eval("""'this is a test\
""")
@@ -16,7 +16,8 @@ class EOFTestCase(unittest.TestCase):
raise test_support.TestFailed
def test_EOFS(self):
- expect = "EOF while scanning triple-quoted string (<string>, line 1)"
+ expect = ("EOF while scanning triple-quoted string literal "
+ "(<string>, line 1)")
try:
eval("""'''this is a test""")
except SyntaxError, msg: