Skip to content

Commit

Permalink
Merge pull request #1064 from wiredfool/font-tests
Browse files Browse the repository at this point in the history
Restrict tests to linux/osx
  • Loading branch information
wiredfool committed Jan 1, 2015
2 parents 3645036 + 96c06de commit 059a00e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/test_imagefont.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ def loadable_font(filepath, size, index, encoding):
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
Expand All @@ -245,6 +247,7 @@ def fake_walker(path):
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.
Expand Down

0 comments on commit 059a00e

Please sign in to comment.