summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKishin Yagami <k.yagami.suou@gmail.com>2022-04-21 22:46:26 +0900
committerKishin Yagami <k.yagami.suou@gmail.com>2022-04-21 22:46:26 +0900
commit4eee7207da04f974b3b79caf29cacb6f709ad464 (patch)
treeda1c6e0f865f359739c471d31baf16feba6bec32
parent6d7fb274abd1f7fdc9de00979217a6933eb76252 (diff)
downloadsimplejson-4eee7207da04f974b3b79caf29cacb6f709ad464.tar.gz
Add the unit test
-rw-r--r--simplejson/tests/test_scanstring.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/simplejson/tests/test_scanstring.py b/simplejson/tests/test_scanstring.py
index d5de180..c6c53b8 100644
--- a/simplejson/tests/test_scanstring.py
+++ b/simplejson/tests/test_scanstring.py
@@ -132,6 +132,8 @@ class TestScanString(TestCase):
self.assertRaises(ValueError,
scanstring, '\\ud834\\x0123"', 0, None, True)
+ self.assertRaises(json.JSONDecodeError, scanstring, "\\u-123", 0, None, True)
+
def test_issue3623(self):
self.assertRaises(ValueError, json.decoder.scanstring, "xxx", 1,
"xxx")