From 4ad2d59519d63914f2a17dc0441cb65ba487322c Mon Sep 17 00:00:00 2001 From: Francisco Massa Date: Tue, 24 Sep 2019 09:37:36 -0300 Subject: [PATCH] Fix Windows CI after #1301 --- test/test_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_utils.py b/test/test_utils.py index e66f090457f..daac49af10d 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -55,6 +55,7 @@ def test_save_image_single_pixel(self): utils.save_image(t, f.name) assert os.path.exists(f.name), 'The pixel image is not present after save' + @unittest.skipIf('win' in sys.platform, 'temporarily disabled on Windows') def test_save_image_file_object(self): with tempfile.NamedTemporaryFile(suffix='.png') as f: t = torch.rand(2, 3, 64, 64) @@ -65,6 +66,7 @@ def test_save_image_file_object(self): img_bytes = Image.open(fp) assert torch.equal(F.to_tensor(img_orig), F.to_tensor(img_bytes)), 'Image not stored in file object' + @unittest.skipIf('win' in sys.platform, 'temporarily disabled on Windows') def test_save_image_single_pixel_file_object(self): with tempfile.NamedTemporaryFile(suffix='.png') as f: t = torch.rand(1, 3, 1, 1)