Skip to content

Commit

Permalink
Fix incompatibility with latest pytest-asyncio
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Feb 5, 2024
1 parent a3a902e commit f6dcdb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ hiro>0.1.6
flaky
lovely-pytest-docker
pytest<8
pytest-asyncio==0.21.1
pytest-asyncio
pytest-benchmark[histogram]
pytest-cov
pytest-lazy-fixture
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def hit():
@pytest.mark.integration
class TestAsyncConcurrency:
@async_all_storage
async def test_fixed_window(self, event_loop, uri, args, fixture):
async def test_fixed_window(self, uri, args, fixture):
storage = storage_from_string(uri, **args)
limiter = limits.aio.strategies.FixedWindowRateLimiter(storage)
limit = RateLimitItemPerMinute(5)
Expand All @@ -89,7 +89,7 @@ async def hit():
assert len(hits) == 5

@async_moving_window_storage
async def test_moving_window(self, event_loop, uri, args, fixture):
async def test_moving_window(self, uri, args, fixture):
storage = storage_from_string(uri, **args)
limiter = limits.aio.strategies.MovingWindowRateLimiter(storage)
limit = RateLimitItemPerMinute(5)
Expand Down

0 comments on commit f6dcdb2

Please sign in to comment.