mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +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()
|
||||
self.assertEqual(('FreeMono', 'Regular'), name)
|
||||
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('win32'), "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
|
||||
|
@ -245,6 +247,7 @@ try:
|
|||
with SimplePatcher(os, 'walk', fake_walker):
|
||||
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):
|
||||
#Like the linux test, more cover hitting code rather than testing
|
||||
#correctness.
|
||||
|
|
Loading…
Reference in New Issue
Block a user