From ab21a38933ff07cabb7d39c904e15d043d8aa125 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Fri, 17 Jun 2022 14:15:33 +0000 Subject: [PATCH] More descriptive variable names --- tests/test_ujson.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_ujson.py b/tests/test_ujson.py index 1cc439e9..80a7cae8 100644 --- a/tests/test_ujson.py +++ b/tests/test_ujson.py @@ -613,17 +613,17 @@ def test_decode_numeric_int_exp(test_input): @pytest.mark.parametrize("mode", ["encode", "decode"]) def test_encode_decode_big_int(i, mode): # Test ints that are too large to be represented by a C integer type - for py in (i, [i], {"i": i}): - j = json.dumps(py, separators=(",", ":")) + for pythonObject in (i, [i], {"i": i}): + jsonString = json.dumps(pythonObject, separators=(",", ":")) if mode == "encode": if hasattr(sys, "pypy_version_info"): # https://foss.heptapod.net/pypy/pypy/-/issues/3765 pytest.skip("PyPy can't serialise big ints") - assert ujson.encode(py) == j - if isinstance(py, dict): - assert ujson.encode(py, sort_keys=True) == j + assert ujson.encode(pythonObject) == jsonString + if isinstance(pythonObject, dict): + assert ujson.encode(pythonObject, sort_keys=True) == jsonString else: - assert ujson.decode(j) == py + assert ujson.decode(jsonString) == pythonObject @pytest.mark.parametrize(