summaryrefslogtreecommitdiff
path: root/simplejson/tests
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2023-04-04 13:37:21 -0700
committerBob Ippolito <bob@redivi.com>2023-04-04 13:37:21 -0700
commitdbd0aa395f480ef249cff9dc9add54a3035fc9e2 (patch)
tree9fc848047c305e3ec200a6fe89983d1e10fd6a2d /simplejson/tests
parent59dac4e82cd6766fc31a9389d573d732580eaab5 (diff)
downloadsimplejson-dbd0aa395f480ef249cff9dc9add54a3035fc9e2.tar.gz
SJ-PT-23-100: Fix inconsistencies in error messages between C and Python implementations
Diffstat (limited to 'simplejson/tests')
-rw-r--r--simplejson/tests/test_fail.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/simplejson/tests/test_fail.py b/simplejson/tests/test_fail.py
index 788f3a5..5f9a8f6 100644
--- a/simplejson/tests/test_fail.py
+++ b/simplejson/tests/test_fail.py
@@ -145,7 +145,7 @@ class TestFail(TestCase):
('["spam', 'Unterminated string starting at', 1),
('["spam"', "Expecting ',' delimiter", 7),
('["spam",', 'Expecting value', 8),
- ('{', 'Expecting property name enclosed in double quotes', 1),
+ ('{', "Expecting property name enclosed in double quotes or '}'", 1),
('{"', 'Unterminated string starting at', 1),
('{"spam', 'Unterminated string starting at', 1),
('{"spam"', "Expecting ':' delimiter", 7),
@@ -156,6 +156,8 @@ class TestFail(TestCase):
('"', 'Unterminated string starting at', 0),
('"spam', 'Unterminated string starting at', 0),
('[,', "Expecting value", 1),
+ ('--', 'Expecting value', 0),
+ ('"\x18d', "Invalid control character %r", 1),
]
for data, msg, idx in test_cases:
try: