We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940c020 commit d9da606Copy full SHA for d9da606
Lib/test/test_json/test_decode.py
@@ -16,6 +16,11 @@ def test_float(self):
16
self.assertIsInstance(rval, float)
17
self.assertEqual(rval, 1.0)
18
19
+ def test_unicode_digits(self):
20
+ for num in ["1\uff10", "0.\uff10", "0e\uff10"]:
21
+ with self.assertRaises(self.JSONDecodeError):
22
+ self.loads(num)
23
+
24
def test_bytes(self):
25
self.assertEqual(self.loads(b"1"), 1)
26
0 commit comments