From f0f841db7144bc6b1dc4d57dac3aea0c896ca82f Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 8 Jul 2017 15:48:43 +0800 Subject: [PATCH] fix test_proxy skipping logic --- tests/test_proxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_proxy.py b/tests/test_proxy.py index 0adbb9f..5faa4c6 100644 --- a/tests/test_proxy.py +++ b/tests/test_proxy.py @@ -11,7 +11,8 @@ except ImportError: import pytest pytestmark = [ pytest.mark.asyncio, - pytest.mark.skipif(not aiohttp, reason="requires aiohttp"), + pytest.mark.skipif('nvchecker.source.aiohttp_httpclient' not in sys.modules, + reason='aiohttp no chosen'), ] async def test_proxy(get_version, monkeypatch):