Skip to content

Commit

Permalink
skip tests file_descriptor_safety tests on windows
Browse files Browse the repository at this point in the history
AsyncPool is not supported on Windows so Pool does have _fileno_to_outq
attribute, making the test fail
  • Loading branch information
mchataigner committed May 17, 2020
1 parent 112e193 commit 736e93d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/unit/worker/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 736e93d

Please sign in to comment.