Skip to content

Commit

Permalink
Make black happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
giffels committed Feb 28, 2022
1 parent e6b3fdf commit ac18586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 22.1.0
hooks:
- id: black
args:
Expand Down
4 changes: 2 additions & 2 deletions tests/utilities_t/test_asyncbulkcall.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_bulk_delay(self):
"""Test that bulks are formed by delay"""
test_size, bulk_delay = 1024, 0.1
# check that delay forces a bulk if the size is too large to be reached
execution = AsyncBulkCall(CallCounter(), size=2 ** 32, delay=bulk_delay)
execution = AsyncBulkCall(CallCounter(), size=2**32, delay=bulk_delay)
before = time.monotonic()
result = run_async(self.execute, execution, count=test_size)
after = time.monotonic()
Expand All @@ -57,7 +57,7 @@ def test_delay_tiny(self):
"""Test that a tiny delay cannot stall execution"""
# sys.float_info.min is not the smallest float possible,
# but it should be insignificant in all math
execution = AsyncBulkCall(CallCounter(), size=2 ** 32, delay=sys.float_info.min)
execution = AsyncBulkCall(CallCounter(), size=2**32, delay=sys.float_info.min)
result = run_async(self.execute, execution, count=2048)
self.assertEqual(result, [(i, i) for i in range(2048)])

Expand Down

0 comments on commit ac18586

Please sign in to comment.