Skip to content

Commit e89e8af

Browse files
authored
Fix failing unit test for figure type
1 parent 225ea71 commit e89e8af

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

qt/python/mantidqt/mantidqt/plotting/test/test_figuretype.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from __future__ import absolute_import
1111

1212
# std imports
13-
from distutils.version import LooseVersion
1413
from unittest import TestCase, main
1514

1615
# thirdparty imports
@@ -64,10 +63,7 @@ def test_contour_plot_returns_contour(self):
6463
ax = plt.subplot(111)
6564
ax.imshow([[1], [1]])
6665
ax.contour([[1, 1], [1, 1]])
67-
if LooseVersion("3.5") <= LooseVersion(matplotlib.__version__):
68-
self.assertEqual(FigureType.Image, figure_type(ax.figure))
69-
else:
70-
self.assertEqual(FigureType.Contour, figure_type(ax.figure))
66+
self.assertEqual(FigureType.Contour, figure_type(ax.figure))
7167

7268
def test_mesh_plot_returns_mesh(self):
7369
a = np.array([[[1, 1, 1], [2, 2, 2], [3, 3, 3]]])

0 commit comments

Comments
 (0)