Skip to content

Commit 390529c

Browse files
committed
debug ci failure?
1 parent 58bd19b commit 390529c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/matplotlib/testing/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def mpl_test_settings(request):
5858
# This import must come after setup() so it doesn't load the
5959
# default backend prematurely.
6060
import matplotlib.pyplot as plt
61+
print("A", dict.__getitem__(matplotlib.rcParams, "backend"))
6162
try:
6263
plt.switch_backend(backend)
6364
except ImportError as exc:
@@ -71,10 +72,13 @@ def mpl_test_settings(request):
7172
with cbook._suppress_matplotlib_deprecation_warning():
7273
matplotlib.style.use(style)
7374
try:
75+
print("B", dict.__getitem__(matplotlib.rcParams, "backend"))
7476
yield
7577
finally:
78+
print("C", dict.__getitem__(matplotlib.rcParams, "backend"))
7679
if backend is not None:
7780
plt.switch_backend(prev_backend)
81+
print("D", dict.__getitem__(matplotlib.rcParams, "backend"))
7882

7983

8084
@pytest.fixture

lib/matplotlib/tests/test_text.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ def test_annotation_negative_fig_coords():
437437
def test_text_stale():
438438
fig, (ax1, ax2) = plt.subplots(1, 2)
439439
plt.draw_all()
440+
print(fig.canvas)
440441
assert not ax1.stale
441442
assert not ax2.stale
442443
assert not fig.stale

0 commit comments

Comments
 (0)