Skip to content

Commit 599b96e

Browse files
committed
Skip know failures for wx on macOS
1 parent 25a93c8 commit 599b96e

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

chaco/plots/tests/test_image_plot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
# Thanks for using Enthought open source!
1010

1111
import os
12-
12+
import platform
1313
import tempfile
1414
from contextlib import contextmanager
15-
1615
import unittest
1716

1817
import numpy as np
@@ -207,6 +206,9 @@ def test_map_screen(self):
207206

208207
# regression test for enthought/chaco#528
209208
@unittest.skipIf(is_null, "Skip on 'null' toolkit")
209+
@unittest.skipIf(
210+
ETSConfig.toolkit == "wx" and platform.system() == 'Darwin',
211+
"Test does not work correctly on wx; https://github.com/enthought/chaco/issues/919")
210212
def test_resize_to_zero(self):
211213
class TestResize(HasTraits):
212214
plot = Instance(Component)

chaco/tests/test_plot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# Thanks for using Enthought open source!
1010

1111
import unittest
12+
import platform
1213

1314
import numpy as np
1415
from numpy import arange, array
@@ -171,6 +172,10 @@ def _plot_default(self):
171172
@unittest.skipIf(ETSConfig.toolkit == "null", "Skip on 'null' toolkit")
172173
class TestEmptyPlot(unittest.TestCase, EnableTestAssistant):
173174

175+
176+
@unittest.skipIf(
177+
ETSConfig.toolkit == "wx" and platform.system() == 'Darwin',
178+
"Test does not work correctly on wx; https://github.com/enthought/chaco/issues/919")
174179
def test_dont_crash_on_click(self):
175180
from traitsui.testing.api import UITester
176181
tester = UITester()

chaco/tools/tests/test_cursor_tool.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# Thanks for using Enthought open source!
1010
import unittest
11+
import platform
1112

1213
import numpy as np
1314

@@ -26,6 +27,9 @@ class TestCursorTool(unittest.TestCase, EnableTestAssistant):
2627

2728
# regression test for enthought/chaco#289
2829
@unittest.skipIf(ETSConfig.toolkit == "null", "Skip on 'null' toolkit")
30+
@unittest.skipIf(
31+
ETSConfig.toolkit == "wx" and platform.system() == 'Darwin',
32+
"Test does not work correctly on wx; https://github.com/enthought/chaco/issues/919")
2933
def test_use_with_log_mappers(self):
3034
class TestCursor(HasTraits):
3135
plot = Instance(Plot)

0 commit comments

Comments
 (0)