Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48d0ddc

Browse files
committed
TST: fix test (turns out it is not a context manager)
1 parent c4700bb commit 48d0ddc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,7 @@ def test_empty_imshow():
773773
im.set_extent([-5, 5, -5, 5])
774774
fig.canvas.draw()
775775

776-
with nose.tools.raises(RuntimeError):
777-
im.make_image(fig._cachedRenderer)
776+
nose.tools.assert_raises(RuntimeError, im.make_image, fig._cachedRenderer)
778777

779778

780779
if __name__ == '__main__':

0 commit comments

Comments
 (0)