From fb27befa1a344b906d45874167f59a6004767bdd Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 30 Jun 2014 22:07:44 -0400 Subject: [PATCH] Skip shell injection tests for Windows --- Tests/test_shell_injection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/test_shell_injection.py b/Tests/test_shell_injection.py index fd14e5f44..eff03fd59 100644 --- a/Tests/test_shell_injection.py +++ b/Tests/test_shell_injection.py @@ -1,6 +1,7 @@ from helper import unittest, PillowTestCase, tearDownModule from helper import djpeg_available, cjpeg_available, netpbm_available +import sys import shutil from PIL import Image, JpegImagePlugin, GifImagePlugin @@ -16,6 +17,7 @@ test_filenames = ( "temp_'\"&&", ) +@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS") class TestShellInjection(PillowTestCase): def assert_save_filename_check(self, src_img, save_func):