Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Python 3.13 #864

Open
wants to merge 14 commits into
base: 0.12
Choose a base branch
from
Prev Previous commit
Next Next commit
Update test_decorators.py
  • Loading branch information
Dreamsorcerer committed Jun 13, 2024
commit 724936b37a00a71d35ddd627c024dae96ec11eab
2 changes: 1 addition & 1 deletion tests/ut/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def test_cache_write_waits_for_future(self, decorator, decorator_call):
async def test_cache_write_doesnt_wait_for_future(self, mocker, decorator, decorator_call):
mocker.spy(decorator, "set_in_cache")
with patch.object(decorator, "get_from_cache", autospec=True, return_value=None):
with patch("aiocache.decorators.asyncio.ensure_future", autospec=True):
with patch("aiocache.decorators.asyncio.create_task", autospec=True):
await decorator_call(aiocache_wait_for_write=False, value="value")

decorator.set_in_cache.assert_not_awaited()
Expand Down
Loading