mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Bump simplejson from 3.18.3 to 3.19.1 (#2036)
* Bump simplejson from 3.18.3 to 3.19.1 Bumps [simplejson](https://github.com/simplejson/simplejson) from 3.18.3 to 3.19.1. - [Release notes](https://github.com/simplejson/simplejson/releases) - [Changelog](https://github.com/simplejson/simplejson/blob/master/CHANGES.txt) - [Commits](https://github.com/simplejson/simplejson/compare/v3.18.3...v3.19.1) --- updated-dependencies: - dependency-name: simplejson dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update simplejson==3.19.1 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
70fb00280b
commit
1798594569
9 changed files with 128 additions and 121 deletions
|
@ -2,6 +2,7 @@ from __future__ import absolute_import
|
|||
import decimal
|
||||
from unittest import TestCase
|
||||
|
||||
import sys
|
||||
import simplejson as json
|
||||
from simplejson.compat import StringIO, b, binary_type
|
||||
from simplejson import OrderedDict
|
||||
|
@ -117,3 +118,10 @@ class TestDecode(TestCase):
|
|||
diff = id(x) - id(y)
|
||||
self.assertRaises(ValueError, j.scan_once, y, diff)
|
||||
self.assertRaises(ValueError, j.raw_decode, y, i)
|
||||
|
||||
def test_bounded_int(self):
|
||||
# SJ-PT-23-03, limit quadratic number parsing per Python 3.11
|
||||
max_str_digits = getattr(sys, 'get_int_max_str_digits', lambda: 4300)()
|
||||
s = '1' + '0' * (max_str_digits - 1)
|
||||
self.assertEqual(json.loads(s), int(s))
|
||||
self.assertRaises(ValueError, json.loads, s + '0')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue