mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Merge pull request #758 from mbrown1413/750_jpeg_on_windows
Skip shell injection tests for Windows
This commit is contained in:
commit
1b2dd37905
|
@ -1,6 +1,7 @@
|
||||||
from helper import unittest, PillowTestCase, tearDownModule
|
from helper import unittest, PillowTestCase, tearDownModule
|
||||||
from helper import djpeg_available, cjpeg_available, netpbm_available
|
from helper import djpeg_available, cjpeg_available, netpbm_available
|
||||||
|
|
||||||
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from PIL import Image, JpegImagePlugin, GifImagePlugin
|
from PIL import Image, JpegImagePlugin, GifImagePlugin
|
||||||
|
@ -16,6 +17,7 @@ test_filenames = (
|
||||||
"temp_'\"&&",
|
"temp_'\"&&",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||||
class TestShellInjection(PillowTestCase):
|
class TestShellInjection(PillowTestCase):
|
||||||
|
|
||||||
def assert_save_filename_check(self, src_img, save_func):
|
def assert_save_filename_check(self, src_img, save_func):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user