Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix CI test errors
- skips tests that run forever, interaction of plt.pause() with Agg backend.
  • Loading branch information
petercorke committed Apr 30, 2026
commit e5bf170a6e79b854932d10476217c9d6d39c24e9
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
env:
MPLBACKEND: Agg
run: |
pytest -s --ignore=W605 --timeout=50 --timeout_method=thread
pytest -s --timeout=50 --timeout_method=thread

codecov:
# If all tests pass:
Expand Down
11 changes: 7 additions & 4 deletions tests/base/test_transforms3d_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from math import pi
import math
from scipy.linalg import logm, expm
import os
import pytest
import sys

Expand All @@ -25,8 +26,9 @@

class Test3D(unittest.TestCase):
@pytest.mark.skipif(
sys.platform.startswith("darwin") and sys.version_info < (3, 11),
reason="tkinter bug with mac",
os.environ.get("CI") == "true"
or (sys.platform.startswith("darwin") and sys.version_info < (3, 11)),
reason="no display in CI / tkinter bug on mac",
)
def test_plot(self):
plt.figure()
Expand Down Expand Up @@ -72,8 +74,9 @@ def test_plot(self):
plt.close("all")

@pytest.mark.skipif(
sys.platform.startswith("darwin") and sys.version_info < (3, 11),
reason="tkinter bug with mac",
os.environ.get("CI") == "true"
or (sys.platform.startswith("darwin") and sys.version_info < (3, 11)),
reason="no display in CI / tkinter bug on mac",
)
def test_animate(self):
tranimate(transl(1, 2, 3), repeat=False, wait=True)
Expand Down
Loading