Skip to content

Commit

Permalink
Merge pull request #515 from ultrajson/hugovk-patch-1
Browse files Browse the repository at this point in the history
Upgrade Black to fix Click
  • Loading branch information
hugovk committed Apr 4, 2022
2 parents aa0d2c8 + c930b22 commit b3c96d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions tests/test_ujson.py
Expand Up @@ -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

Expand Down

0 comments on commit b3c96d0

Please sign in to comment.