summaryrefslogtreecommitdiff
path: root/Lib/test/test_json/test_scanstring.py
diff options
context:
space:
mode:
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):