Skip to content

Commit 127dd04

Browse files
committed
TST: use assert in all test_proper_roi
1 parent af69f7a commit 127dd04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

glue/core/tests/test_roi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ def _roi_factory(self):
12161216
return MplPolygonalROI(self.axes)
12171217

12181218
def test_proper_roi(self):
1219-
return isinstance(self.roi._roi, PolygonalROI)
1219+
assert isinstance(self.roi._roi, PolygonalROI)
12201220

12211221
def send_events(self):
12221222
ev0 = DummyEvent(5, 5, inaxes=self.axes)
@@ -1271,7 +1271,7 @@ def _roi_factory(self):
12711271
return MplPickROI(self.axes)
12721272

12731273
def test_proper_roi(self):
1274-
return isinstance(self.roi._roi, PointROI)
1274+
assert isinstance(self.roi._roi, PointROI)
12751275

12761276
def test_start_ignored_if_not_inaxes(self):
12771277
ev = DummyEvent(0, 0, inaxes=None)

0 commit comments

Comments
 (0)