From ca6026b4592249029cca12183f5d8e66eb00a93b Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 27 Sep 2024 15:40:29 -0400 Subject: [PATCH] Use 'in' check to produce a bool. --- test_functools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_functools.py b/test_functools.py index eb699ba..03bf3e0 100644 --- a/test_functools.py +++ b/test_functools.py @@ -20,8 +20,7 @@ class TestThrottler: @pytest.mark.xfail( - os.environ.get('GITHUB_ACTIONS', False) - and platform.system() in ('Darwin', 'Windows'), + 'GITHUB_ACTIONS' in os.environ and platform.system() in ('Darwin', 'Windows'), reason="Performance is heavily throttled on Github Actions Mac/Windows runs", ) def test_function_throttled(self) -> None: