Skip to content

Commit

Permalink
Unskip most of TestGLDrawing tests on OSX (#540)
Browse files Browse the repository at this point in the history
* Unskip TestGLDrawing for OSX

* Skip TestGLDrawing.test_text on OSX
  • Loading branch information
kitchoi authored Jan 13, 2021
1 parent d4c961c commit 8b669a5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion kiva/tests/test_gl_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

from kiva.tests.drawing_tester import DrawingImageTester

is_windows = (sys.platform in ('win32', 'cygwin'))

@unittest.skipIf("win" in sys.platform, "Pyglet/GL backend issues on Windows")
@unittest.skipIf(is_windows, "Pyglet/GL backend issues on Windows")
@unittest.skipIf(PYGLET_NOT_AVAILABLE, "Cannot import pyglet")
class TestGLDrawing(DrawingImageTester, unittest.TestCase):

Expand All @@ -35,6 +36,12 @@ def test_star_clip(self):
# FIXME: overriding test since it segfaults
DrawingImageTester.test_star_clip(self)

@unittest.skipIf(
sys.platform == "darwin",
"Error getting sfnt font name on OSX (enthought/enable#541)")
def test_text(self):
DrawingImageTester.test_text(self)

@unittest.skip("gl graphics context does not clip text properly (#165)")
def test_text_clip(self):
# gl graphics context does not clip text properly (#165).
Expand Down

0 comments on commit 8b669a5

Please sign in to comment.