mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Replaced MacOS with macOS
This commit is contained in:
parent
2123dd70fb
commit
4a781d0013
|
@ -9,7 +9,7 @@ min_iterations = 100
|
|||
max_iterations = 10000
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
|
||||
class TestImagingLeaks(PillowTestCase):
|
||||
|
||||
def _get_mem_usage(self):
|
||||
|
|
|
@ -11,7 +11,7 @@ codecs = dir(Image.core)
|
|||
test_file = "Tests/images/rgb_trns_ycbc.jp2"
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
|
||||
class TestJpegLeaks(PillowTestCase):
|
||||
def setUp(self):
|
||||
if "jpeg2k_encoder" not in codecs or "jpeg2k_decoder" not in codecs:
|
||||
|
|
|
@ -15,7 +15,7 @@ NOSE_PROCESSES=0 NOSE_TIMEOUT=600 valgrind --tool=massif \
|
|||
"""
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
|
||||
class TestJpegLeaks(PillowTestCase):
|
||||
|
||||
"""
|
||||
|
|
|
@ -227,7 +227,7 @@ class PillowTestCase(unittest.TestCase):
|
|||
raise IOError()
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
|
||||
class PillowLeakTestCase(PillowTestCase):
|
||||
# requires unix/osx
|
||||
iterations = 100 # count
|
||||
|
|
|
@ -22,7 +22,7 @@ class TestFileIcns(PillowTestCase):
|
|||
self.assertEqual(im.size, (1024, 1024))
|
||||
self.assertEqual(im.format, "ICNS")
|
||||
|
||||
@unittest.skipIf(sys.platform != 'darwin', "requires MacOS")
|
||||
@unittest.skipIf(sys.platform != 'darwin', "requires macOS")
|
||||
def test_save(self):
|
||||
im = Image.open(TEST_FILE)
|
||||
|
||||
|
@ -35,7 +35,7 @@ class TestFileIcns(PillowTestCase):
|
|||
self.assertEqual(reread.size, (1024, 1024))
|
||||
self.assertEqual(reread.format, "ICNS")
|
||||
|
||||
@unittest.skipIf(sys.platform != 'darwin', "requires MacOS")
|
||||
@unittest.skipIf(sys.platform != 'darwin', "requires macOS")
|
||||
def test_save_append_images(self):
|
||||
im = Image.open(TEST_FILE)
|
||||
|
||||
|
|
|
@ -540,7 +540,7 @@ class TestFilePng(PillowTestCase):
|
|||
self.assertEqual(len(chunks), 3)
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
|
||||
class TestTruncatedPngPLeaks(PillowLeakTestCase):
|
||||
mem_limit = 2*1024 # max increase in K
|
||||
iterations = 100 # Leak is 56k/iteration, this will leak 5.6megs
|
||||
|
|
|
@ -4,7 +4,7 @@ import sys
|
|||
from PIL import Image, features, ImageDraw, ImageFont
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
|
||||
class TestTTypeFontLeak(PillowLeakTestCase):
|
||||
# fails at iteration 3 in master
|
||||
iterations = 10
|
||||
|
|
|
@ -437,7 +437,7 @@ class TestImageFont(PillowTestCase):
|
|||
self.assertEqual(('FreeMono', 'Regular'), name)
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'),
|
||||
"requires Unix or MacOS")
|
||||
"requires Unix or macOS")
|
||||
def test_find_linux_font(self):
|
||||
# A lot of mocking here - this is more for hitting code and
|
||||
# catching syntax like errors
|
||||
|
@ -471,7 +471,7 @@ class TestImageFont(PillowTestCase):
|
|||
font_directory+'/Duplicate.ttf', 'Duplicate')
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'),
|
||||
"requires Unix or MacOS")
|
||||
"requires Unix or macOS")
|
||||
def test_find_macos_font(self):
|
||||
# Like the linux test, more cover hitting code rather than testing
|
||||
# correctness.
|
||||
|
|
|
@ -18,7 +18,7 @@ test_filenames = (
|
|||
)
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or macOS")
|
||||
class TestShellInjection(PillowTestCase):
|
||||
|
||||
def assert_save_filename_check(self, src_img, save_func):
|
||||
|
|
Loading…
Reference in New Issue
Block a user