Skip to content

Commit

Permalink
Update test_edge.py
Browse files Browse the repository at this point in the history
update  test_3d_error1() function
  • Loading branch information
SujoyKG committed Sep 20, 2020
1 parent fd85923 commit 57e5245
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mahotas/tests/test_edge.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from mahotas.edge import sobel
from mahotas.edge import sujoy
from nose.tools import raises
import pytest
import mahotas as mh
import numpy as np
Expand Down Expand Up @@ -105,10 +104,10 @@ def test_sujoy_pure():
_ = sujoy(f)
assert np.all(f == f2)

@raises(ValueError)
def test_3d_error1():
f = np.zeros((32,16,3))
sujoy(f)
with pytest.raises(ValueError):
sujoy(f)

def test_dog():
im = mh.demos.load('lena')
Expand Down

0 comments on commit 57e5245

Please sign in to comment.