diff --git a/nvchecker/util.py b/nvchecker/util.py index 42994e2..1184e00 100644 --- a/nvchecker/util.py +++ b/nvchecker/util.py @@ -251,7 +251,7 @@ class FunctionWorker(BaseWorker): if httpt is None: httpt = self.keymanager.get_key('httptoken_'+name) if httpt is not None: - ctx_httpt.set(httpt) + ctx_httpt.set(httpt) try: async with self.task_sem: diff --git a/tests/test_httpheader.py b/tests/test_httpheader.py index 091dbc2..68ddb51 100644 --- a/tests/test_httpheader.py +++ b/tests/test_httpheader.py @@ -4,6 +4,7 @@ import pytest import pytest_httpbin assert pytest_httpbin # for pyflakes + pytestmark = [pytest.mark.asyncio, pytest.mark.needs_net] async def test_redirection(get_version):