Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
  • Loading branch information
nineteendo and taleinat authored Oct 18, 2024
1 parent e14ea84 commit 10923b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/test/test_json/test_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_float(self):
self.assertIsInstance(rval, float)
self.assertEqual(rval, 1.0)

def test_unicode_digits(self):
def test_nonascii_digits_rejected(self):
for num in ["1\uff10", "0.\uff10", "0e\uff10"]:
with self.assertRaises(self.JSONDecodeError):
self.loads(num)
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Reject unicode digits for Python implementation of :func:`json.loads`.
Reject non-ASCII digits in the Python implementation of :func:`json.loads`.

0 comments on commit 10923b2

Please sign in to comment.