Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test coverage #351

Merged
merged 18 commits into from Oct 9, 2012
Merged

Test coverage #351

merged 18 commits into from Oct 9, 2012

Conversation

ahojnnes
Copy link
Member

@ahojnnes ahojnnes commented Oct 6, 2012

Improvements for test coverage of several functions / packages.

At the same time I fixed some bugs I came across.

@@ -98,7 +98,7 @@ def find_contours(array, level,
"""
array = np.asarray(array, dtype=np.double)
if array.ndim != 2:
raise RuntimeError('Only 2D arrays are supported.')
raise TypeError('Only 2D arrays are supported.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValueError?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

@stefanv
Copy link
Member

stefanv commented Oct 8, 2012

Thanks!


## def func(Y):
## return ssim(X, Y, dynamic_range=255)
def test_ssim_grad():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a note that this test is known to fail on OSX 10.6?

See the following thread for more information:
https://groups.google.com/d/topic/scikit-image/hOJhyDRzOG4/discussion

I never tracked down the source of the error, but @stefanv was able to reproduce the failure on a similar system so I don't think it's just me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note added.

@stefanv
Copy link
Member

stefanv commented Oct 9, 2012

+1

tonysyu added a commit that referenced this pull request Oct 9, 2012
@tonysyu tonysyu merged commit c17ffe6 into scikit-image:master Oct 9, 2012
@tonysyu
Copy link
Member

tonysyu commented Oct 9, 2012

Hmm, the tests ran fine on my system, but the Travis CI fails:
https://travis-ci.org/#!/scikit-image/scikit-image/builds/2726910

I didn't notice until now that Travis isn't testing PRs anymore.

@stefanv
Copy link
Member

stefanv commented Oct 9, 2012

I re-enabled it this morning, after the repo move.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants