mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Merge pull request #1064 from wiredfool/font-tests
Restrict tests to linux/osx
This commit is contained in:
commit
059a00eefa
|
@ -231,6 +231,8 @@ try:
|
||||||
name = font.getname()
|
name = font.getname()
|
||||||
self.assertEqual(('FreeMono', 'Regular'), name)
|
self.assertEqual(('FreeMono', 'Regular'), name)
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||||
def test_find_linux_font(self):
|
def test_find_linux_font(self):
|
||||||
#A lot of mocking here - this is more for hitting code and catching
|
#A lot of mocking here - this is more for hitting code and catching
|
||||||
#syntax like errors
|
#syntax like errors
|
||||||
|
@ -245,6 +247,7 @@ try:
|
||||||
with SimplePatcher(os, 'walk', fake_walker):
|
with SimplePatcher(os, 'walk', fake_walker):
|
||||||
self._test_fake_loading_font('/usr/local/share/fonts/Arial.ttf')
|
self._test_fake_loading_font('/usr/local/share/fonts/Arial.ttf')
|
||||||
|
|
||||||
|
@unittest.skipIf(sys.platform.startswith('win32'), "requires Unix or MacOS")
|
||||||
def test_find_osx_font(self):
|
def test_find_osx_font(self):
|
||||||
#Like the linux test, more cover hitting code rather than testing
|
#Like the linux test, more cover hitting code rather than testing
|
||||||
#correctness.
|
#correctness.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user