diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 13:16:30 +0200 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 13:16:30 +0200 |
| commit | 47efb4a5dc9cdf3f59362beb9a04c5c6bdd09f81 (patch) | |
| tree | b3e5115125360618a02a9615a643cbebe4aa7e75 /Lib/test/test_json/test_scanstring.py | |
| parent | 4e5d9eac2ca03debecbb9c6ed873303d04ead06a (diff) | |
| download | cpython-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.py | 2 |
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): |
