Skip to content

Commit 711e72b

Browse files
committed
FIX: account for changes on Matplotlib main
1 parent fff5b20 commit 711e72b

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

mpl_gui/tests/conftest.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@
1212
sys.modules["matplotlib.pyplot"] = None
1313

1414

15-
class TestCanvas(FigureCanvasBase):
16-
def __init__(self, *args, **kwargs):
17-
super().__init__(*args, **kwargs)
18-
self.call_info = {}
19-
20-
def start_event_loop(self, timeout=0):
21-
self.call_info["start_event_loop"] = {"timeout": timeout}
22-
23-
2415
class TestManger(FigureManagerBase):
2516
_active_managers = None
2617

@@ -35,6 +26,17 @@ def destroy(self):
3526
self.call_info["destroy"] = {}
3627

3728

29+
class TestCanvas(FigureCanvasBase):
30+
manager_class = TestManger
31+
32+
def __init__(self, *args, **kwargs):
33+
super().__init__(*args, **kwargs)
34+
self.call_info = {}
35+
36+
def start_event_loop(self, timeout=0):
37+
self.call_info["start_event_loop"] = {"timeout": timeout}
38+
39+
3840
class TestShow(ShowBase):
3941
def mainloop(self):
4042
...

0 commit comments

Comments
 (0)