From 736e93dae7a913c75e00f0d175f10df97c283dfd Mon Sep 17 00:00:00 2001 From: Mathieu Chataigner Date: Sun, 17 May 2020 20:59:10 +0200 Subject: [PATCH] skip tests file_descriptor_safety tests on windows AsyncPool is not supported on Windows so Pool does have _fileno_to_outq attribute, making the test fail --- t/unit/worker/test_worker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/unit/worker/test_worker.py b/t/unit/worker/test_worker.py index d8a0aae0737..6112cf253bd 100644 --- a/t/unit/worker/test_worker.py +++ b/t/unit/worker/test_worker.py @@ -792,6 +792,7 @@ def test_with_autoscaler(self): ) assert worker.autoscaler + @skip.if_win32() @pytest.mark.nothreads_not_lingering @mock.sleepdeprived(module=autoscale) def test_with_autoscaler_file_descriptor_safety(self): @@ -841,6 +842,7 @@ def test_with_autoscaler_file_descriptor_safety(self): worker.terminate() worker.pool.terminate() + @skip.if_win32() @pytest.mark.nothreads_not_lingering @mock.sleepdeprived(module=autoscale) def test_with_file_descriptor_safety(self):