test_effect_noise stalls on Travis, skip unless Windows

This commit is contained in:
hugovk 2014-09-02 14:45:54 +03:00
parent 860e67e1c4
commit d3242a5124

View File

@ -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