From 452fa858f4b6ae1ea1f9ae3951516e35ffb4c02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Mon, 20 Apr 2020 10:04:37 +0200 Subject: [PATCH] skip warning test (#1533) --- tests/trainer/test_dataloaders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/trainer/test_dataloaders.py b/tests/trainer/test_dataloaders.py index 5bd7681c6f..91f0bcf0aa 100644 --- a/tests/trainer/test_dataloaders.py +++ b/tests/trainer/test_dataloaders.py @@ -1,3 +1,5 @@ +import platform + import pytest import torch @@ -488,6 +490,7 @@ def test_error_on_zero_len_dataloader(tmpdir): trainer.fit(model) +@pytest.mark.skipif(platform.system() == 'Windows', reason='Does not apply to Windows platform.') def test_warning_with_few_workers(tmpdir): """ Test that error is raised if dataloader with only a few workers is used """ tutils.reset_seed()