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 b0eb2d8f99099229025312d6681379943dfca037
4 changes: 1 addition & 3 deletions tests/ut/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ async def test_cache_write_doesnt_wait_for_future(self, mocker, decorator, decor
mocker.spy(decorator, "set_in_cache")
with patch.object(decorator, "get_from_cache", autospec=True, return_value=None):
with patch("aiocache.decorators.asyncio.create_task", autospec=True):
# TODO: Should fix this warning in future by using aiojobs or similar
with pytest.warns(RuntimeWarning, match="never awaited"):
await decorator_call(aiocache_wait_for_write=False, value="value")
await decorator_call(aiocache_wait_for_write=False, value="value")

decorator.set_in_cache.assert_not_awaited()
decorator.set_in_cache.assert_called_once_with("stub()[('value', 'value')]", "value")
Expand Down
Loading