karlwessel / mplopengl

OpenGL based backend for matplotlib
MIT License
14 stars 5 forks source link

test_text.py fails when running pytest #10

Closed karlwessel closed 2 days ago

karlwessel commented 5 years ago

Running the tests from test_text.py directly with pytest tests/test_text.py works fine.

However when running only pytest it fails at test_mathtext_example[png] because some of the text is rendered as black boxes instead of normal text.

This could be caused by some OpenGL context from previous tests influence the others.

karlwessel commented 5 years ago

This seems to be related to the pyqt version. The latest pyqt version where all tests pass is v5.10.1. The first release tested where the test fails is v5.11.2.

karlwessel commented 5 years ago

This seems to be a Problem with GPUObjectCache. If caching of objects is disabled for text the tests pass correctly.

However just increasing the cache size does not seem to help.

karlwessel commented 2 days ago

Was fixed by PR #14.