1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-12-04 19:08:21 +01:00

Merge pull request #515 from ultrajson/hugovk-patch-1

Upgrade Black to fix Click
This commit is contained in:
Hugo van Kemenade 2022-04-04 07:31:27 +03:00 committed by GitHub
commit b3c96d0bd9
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

@ -6,7 +6,7 @@ repos:
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
args: [--target-version=py37]

@ -396,11 +396,11 @@ def test_decode_number_with32bit_sign_bit():
# sign bit set (2**31 <= x < 2**32) are decoded properly.
docs = (
'{"id": 3590016419}',
'{"id": %s}' % 2 ** 31,
'{"id": %s}' % 2 ** 32,
'{"id": %s}' % ((2 ** 32) - 1),
'{"id": %s}' % 2**31,
'{"id": %s}' % 2**32,
'{"id": %s}' % ((2**32) - 1),
)
results = (3590016419, 2 ** 31, 2 ** 32, 2 ** 32 - 1)
results = (3590016419, 2**31, 2**32, 2**32 - 1)
for doc, result in zip(docs, results):
assert ujson.decode(doc)["id"] == result