Skip to content

Commit 57b3a67

Browse files
authored
Merge pull request #9 from tacaswell/fix_mpl36_compat
FIX: account for changes on Matplotlib main
2 parents fff5b20 + 59bec65 commit 57b3a67

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
#
9696
# This is also used if you do content translation via gettext catalogs.
9797
# Usually you set "language" from the command line for these cases.
98-
language = None
98+
# language = None
9999

100100
# List of patterns, relative to source directory, that match files and
101101
# directories to ignore when looking for source files.

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)