summaryrefslogtreecommitdiff
path: root/Lib/test/test_json/test_scanstring.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 13:16:30 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 13:16:30 +0200
commit47efb4a5dc9cdf3f59362beb9a04c5c6bdd09f81 (patch)
treeb3e5115125360618a02a9615a643cbebe4aa7e75 /Lib/test/test_json/test_scanstring.py
parent4e5d9eac2ca03debecbb9c6ed873303d04ead06a (diff)
downloadcpython-git-47efb4a5dc9cdf3f59362beb9a04c5c6bdd09f81.tar.gz
Issue #19361: JSON decoder now raises JSONDecodeError instead of ValueError.
Diffstat (limited to 'Lib/test/test_json/test_scanstring.py')
-rw-r--r--Lib/test/test_json/test_scanstring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_json/test_scanstring.py b/Lib/test/test_json/test_scanstring.py
index 07f4358100..2d3ee8a8bf 100644
--- a/Lib/test/test_json/test_scanstring.py
+++ b/Lib/test/test_json/test_scanstring.py
@@ -129,7 +129,7 @@ class TestScanstring:
'"\\ud834\\u0X20"',
]
for s in bad_escapes:
- with self.assertRaises(ValueError, msg=s):
+ with self.assertRaises(self.JSONDecodeError, msg=s):
scanstring(s, 1, True)
def test_overflow(self):