From 2cdd9f12da18ac60035ef5c34caf33062ad5a8fb Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 28 Dec 2020 11:55:03 -0500 Subject: [PATCH] Following move to Github actions, port the expected failing test also. --- test_functools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_functools.py b/test_functools.py index 02691c5..08f0c2c 100644 --- a/test_functools.py +++ b/test_functools.py @@ -4,6 +4,7 @@ import copy import random import functools +import platform from unittest import mock import pytest @@ -14,8 +15,8 @@ class TestThrottler: @pytest.mark.xfail( - os.environ.get('AGENT_OS', '') in ('Windows_NT', 'Darwin'), - reason="Performance is heavily throttled on Azure Win/Mac runs", + os.environ.get('GITHUB_ACTIONS') and platform.system() == 'Darwin', + reason="Performance is heavily throttled on Github Actions Mac runs", ) def test_function_throttled(self): """