Restrict tests to linux/osx

This commit is contained in:
wiredfool 2014-12-31 19:59:50 -08:00
parent 4889ae776c
commit 96c06de695

View File

@ -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.