From 5dda20ead26f092a6283ef15e1f70ce292afe4ce Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Fri, 11 Jun 2021 16:13:02 +0800 Subject: [PATCH] some more tweaks --- nvchecker/util.py | 2 +- tests/test_httpheader.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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):