From d3242a5124251e942dc9491999ee0e6b704b81dc Mon Sep 17 00:00:00 2001 From: hugovk Date: Tue, 2 Sep 2014 14:45:54 +0300 Subject: [PATCH] test_effect_noise stalls on Travis, skip unless Windows --- Tests/test_image.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/test_image.py b/Tests/test_image.py index bbc9a43fc..83d5b0d1f 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -1,6 +1,7 @@ from helper import unittest, PillowTestCase, lena from PIL import Image +import sys class TestImage(PillowTestCase): @@ -140,7 +141,9 @@ class TestImage(PillowTestCase): img_colors = sorted(img.getcolors()) self.assertEqual(img_colors, expected_colors) - def test_noise(self): + @unittest.skipUnless(sys.platform.startswith('win32'), + "Stalls on Travis CI, passes on Windows") + def test_effect_noise(self): # Arrange size = (100, 100) sigma = 128