Skip to content

Commit 353ca7b

Browse files
committed
More fixes
1 parent 7032790 commit 353ca7b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mpl_scatter_density/tests/test_scatter_density_artist.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ def test_downres(self, log):
101101
self.ax.set_yscale('log')
102102
return self.fig
103103

104-
def test_no_dpi(self):
104+
def test_no_dpi(self, tmp_path):
105105
# this is just to make sure things work, but can't do an image test
106106
# since dpi might be device-dependent
107107
a = ScatterDensityArtist(self.ax, self.x1, self.y1, dpi=None)
108108
self.ax.add_artist(a)
109-
return self.fig
109+
self.fig.savefig(tmp_path / 'test.png')
110110

111111
@pytest.mark.mpl_image_compare(style={}, baseline_dir=baseline_dir)
112112
@pytest.mark.parametrize(('xscale', 'yscale'), [('linear', 'linear'), ('linear', 'log'),

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{36,37,38,39,310,311}-test{,-image}
3+
py{36,37,38,39,310,311}-test{,-image}{-mpl30,-mpl31,-mpl32,-mpl33,-mpl34,-mpl35,-mpl36,-mpl37,-mpl38,-mpldev}
44
codestyle
55
requires =
66
setuptools >= 30.3.0

0 commit comments

Comments
 (0)