diff options
| author | robot-piglet <[email protected]> | 2025-10-11 20:23:00 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-10-11 20:35:23 +0300 |
| commit | b9fd68b9ac65ce40f7f679169eba2d0b38fda277 (patch) | |
| tree | 96566c96833d6d3e7620d33e272e4338853352fc /contrib/python/simplejson/py3 | |
| parent | 5e704b94e78206a047a14ace6f7375d8983d7d67 (diff) | |
Intermediate changes
commit_hash:97e25b8bd6a13444872620468246b26bba34ac22
Diffstat (limited to 'contrib/python/simplejson/py3')
5 files changed, 13 insertions, 3 deletions
diff --git a/contrib/python/simplejson/py3/.dist-info/METADATA b/contrib/python/simplejson/py3/.dist-info/METADATA index bee5586b12d..f685f2bb485 100644 --- a/contrib/python/simplejson/py3/.dist-info/METADATA +++ b/contrib/python/simplejson/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: simplejson -Version: 3.20.1 +Version: 3.20.2 Summary: Simple, fast, extensible JSON encoder/decoder for Python Home-page: https://github.com/simplejson/simplejson Author: Bob Ippolito diff --git a/contrib/python/simplejson/py3/simplejson/__init__.py b/contrib/python/simplejson/py3/simplejson/__init__.py index 8bb46f15ed9..a526d8c7823 100644 --- a/contrib/python/simplejson/py3/simplejson/__init__.py +++ b/contrib/python/simplejson/py3/simplejson/__init__.py @@ -118,7 +118,7 @@ Serializing multiple objects to JSON lines (newline-delimited JSON):: """ from __future__ import absolute_import -__version__ = '3.20.1' +__version__ = '3.20.2' __all__ = [ 'dump', 'dumps', 'load', 'loads', 'JSONDecoder', 'JSONDecodeError', 'JSONEncoder', diff --git a/contrib/python/simplejson/py3/simplejson/tests/__init__.py b/contrib/python/simplejson/py3/simplejson/tests/__init__.py index 79d1d1706f7..d9986d033a0 100644 --- a/contrib/python/simplejson/py3/simplejson/tests/__init__.py +++ b/contrib/python/simplejson/py3/simplejson/tests/__init__.py @@ -18,6 +18,8 @@ class TestMissingSpeedups(unittest.TestCase): def runTest(self): if hasattr(sys, "pypy_translation_info"): "PyPy doesn't need speedups! :)" + elif getattr(getattr(sys, "implementation", None), "name", None) == "graalpy": + "GraalPy doesn't need speedups! :)" elif hasattr(self, "skipTest"): self.skipTest("_speedups.so is missing!") diff --git a/contrib/python/simplejson/py3/simplejson/tests/test_float.py b/contrib/python/simplejson/py3/simplejson/tests/test_float.py index a9779694728..fed1bd97cd6 100644 --- a/contrib/python/simplejson/py3/simplejson/tests/test_float.py +++ b/contrib/python/simplejson/py3/simplejson/tests/test_float.py @@ -1,3 +1,4 @@ +import sys import math from unittest import TestCase from simplejson.compat import long_type, text_type @@ -36,3 +37,10 @@ class TestFloat(TestCase): self.assertEqual(int(json.dumps(num)), num) self.assertEqual(json.loads(json.dumps(num)), num) self.assertEqual(json.loads(text_type(json.dumps(num))), num) + + def test_float_range(self): + try: + float_range = [sys.float_info.min, sys.float_info.max] + except AttributeError: + float_range = [2.2250738585072014e-308, 1.7976931348623157e+308] + self.assertEqual(json.loads(json.dumps(float_range)), float_range) diff --git a/contrib/python/simplejson/py3/ya.make b/contrib/python/simplejson/py3/ya.make index 1d192847a5b..85e677db4bd 100644 --- a/contrib/python/simplejson/py3/ya.make +++ b/contrib/python/simplejson/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(3.20.1) +VERSION(3.20.2) LICENSE(MIT) |
