Skip to content

Commit

Permalink
skip test_dont_crash_on_click on windows/pyqt (#666)
Browse files Browse the repository at this point in the history
* skip test failing on windows/pyqt

* flake8
  • Loading branch information
aaronayres35 authored Apr 15, 2021
1 parent 3a3231a commit 7a348ba
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions chaco/tests/test_plot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import unittest

from numpy import alltrue, arange, array
Expand All @@ -13,6 +14,18 @@
from chaco.default_colormaps import viridis
from chaco.tools.api import PanTool, ZoomTool

is_windows = platform.system() == "Windows"


def is_qt4():
if not ETSConfig.toolkit.startswith('qt'):
return False

# Only AFTER confirming Qt's availability...
# We lean on Pyface here since the check is complicated.
import pyface.qt
return pyface.qt.is_qt4


class PlotTestCase(unittest.TestCase):
def test_plot_from_unsupported_array_shape(self):
Expand Down Expand Up @@ -123,6 +136,7 @@ def _plot_default(self):
@unittest.skipIf(ETSConfig.toolkit == "null", "Skip on 'null' toolkit")
class TestEmptyPlot(unittest.TestCase, EnableTestAssistant):

@unittest.skipIf(is_windows and is_qt4(), "Test breaks on windows/pyqt")
def test_dont_crash_on_click(self):
from traitsui.testing.api import UITester
tester = UITester()
Expand Down

0 comments on commit 7a348ba

Please sign in to comment.