From d23154b39143652bc8d7880cf08c53c9a01a003f Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Wed, 4 May 2022 12:30:17 +0100 Subject: [PATCH] Skip devtools tests on Windows too due to connection issue --- tests/devtools/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/devtools/__init__.py b/tests/devtools/__init__.py index e69de29bb..de8275a8d 100644 --- a/tests/devtools/__init__.py +++ b/tests/devtools/__init__.py @@ -0,0 +1,17 @@ +import os +import sys + +import pytest + + +_MACOS_CI = sys.platform == "darwin" and os.getenv("CI", "0") != "0" +_WINDOWS = sys.platform == "win32" + +# TODO - this needs to be revisited - perhaps when aiohttp 4.0 is released? +# We get occasional test failures relating to devtools. These *appear* to be limited to MacOS, +# and the error messages suggest the event loop is being shutdown before async fixture +# teardown code has finished running. These are very rare, but are much more of an issue on +# CI since they can delay builds that have passed locally. +pytestmark = pytest.mark.skipif( + _MACOS_CI or _WINDOWS, reason="Issue #411" +)