Skip to content

Some tests fail on macOS with the wx backend #919

@itziakos

Description

@itziakos

Using Python 3.11, wxPython 4.2.3 on apple silicon

======================================================================
ERROR: test_resize_to_zero (chaco.plots.tests.test_image_plot.TestResultImage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/chaco/plots/tests/test_image_plot.py", line 234, in test_resize_to_zero
    with tester.create_ui(test_obj):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/tester/ui_tester.py", line 109, in create_ui
    with reraise_exceptions():
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/_exception_handling.py", line 73, in reraise_exceptions
    raise RuntimeError(msg)
RuntimeError: Uncaught exceptions found.
=== Exception (type: <class 'wx._core.wxAssertionError'>, value: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported) ===
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/abstract_window.py", line 545, in _paint
    self._window_paint(event)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/wx/image.py", line 69, in _window_paint
    bmp.SetSize(control.GetSize())
wx._core.wxAssertionError: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported


======================================================================
ERROR: test_dont_crash_on_click (chaco.tests.test_plot.TestEmptyPlot)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/chaco/tests/test_plot.py", line 179, in test_dont_crash_on_click
    with tester.create_ui(empty_plot):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/tester/ui_tester.py", line 109, in create_ui
    with reraise_exceptions():
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/_exception_handling.py", line 73, in reraise_exceptions
    raise RuntimeError(msg)
RuntimeError: Uncaught exceptions found.
=== Exception (type: <class 'wx._core.wxAssertionError'>, value: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported) ===
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/abstract_window.py", line 545, in _paint
    self._window_paint(event)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/wx/image.py", line 69, in _window_paint
    bmp.SetSize(control.GetSize())
wx._core.wxAssertionError: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported

=== Exception (type: <class 'wx._core.wxAssertionError'>, value: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported) ===
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/abstract_window.py", line 545, in _paint
    self._window_paint(event)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/wx/image.py", line 69, in _window_paint
    bmp.SetSize(control.GetSize())
wx._core.wxAssertionError: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported

=== Exception (type: <class 'wx._core.wxAssertionError'>, value: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported) ===
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/abstract_window.py", line 545, in _paint
    self._window_paint(event)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/wx/image.py", line 69, in _window_paint
    bmp.SetSize(control.GetSize())
wx._core.wxAssertionError: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported


======================================================================
ERROR: test_use_with_linear_mappers (chaco.tools.tests.test_cursor_tool.TestCursorTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/chaco/tools/tests/test_cursor_tool.py", line 92, in test_use_with_linear_mappers
    with tester.create_ui(test_cursor):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/tester/ui_tester.py", line 109, in create_ui
    with reraise_exceptions():
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/_exception_handling.py", line 73, in reraise_exceptions
    raise RuntimeError(msg)
RuntimeError: Uncaught exceptions found.
=== Exception (type: <class 'wx._core.wxAssertionError'>, value: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported) ===
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/abstract_window.py", line 545, in _paint
    self._window_paint(event)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/wx/image.py", line 69, in _window_paint
    bmp.SetSize(control.GetSize())
wx._core.wxAssertionError: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported


======================================================================
ERROR: test_use_with_log_mappers (chaco.tools.tests.test_cursor_tool.TestCursorTool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/chaco/tools/tests/test_cursor_tool.py", line 58, in test_use_with_log_mappers
    with tester.create_ui(test_cursor):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/tester/ui_tester.py", line 109, in create_ui
    with reraise_exceptions():
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/traitsui/testing/_exception_handling.py", line 73, in reraise_exceptions
    raise RuntimeError(msg)
RuntimeError: Uncaught exceptions found.
=== Exception (type: <class 'wx._core.wxAssertionError'>, value: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported) ===
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/abstract_window.py", line 545, in _paint
    self._window_paint(event)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/enable/wx/image.py", line 69, in _window_paint
    bmp.SetSize(control.GetSize())
wx._core.wxAssertionError: C++ assertion "GetHeight() == h" failed at /private/var/folders/qn/7t0vq3ts721cmgt0tgrtgzl80000gn/T/cibw-sdist-993jszwn/wxPython-4.2.3/ext/wxWidgets/src/osx/core/bitmap.cpp(1462) in SetHeight(): Changing the bitmap height is not supported


----------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions