31 Commits

Author SHA1 Message Date
François Boulogne 8930052c3d Add precision to test_parallel docstring 2016-08-03 08:07:21 +02:00
Egor Panfilov 3c803f95ef Removed deprecated filter module 2016-03-23 22:44:29 +03:00
Stefan van der Walt dc9c887319 Raise at least one error for parallel tests.
Ideally, we should grab all exceptions raised and let the user see them.  For
now, at least make sure that the primary test passes.
2016-02-23 10:59:14 -08:00
Steven Silvester 66805cabdf Try fixing the remaining unclosed error 2015-07-14 07:45:41 -05:00
Steven Silvester e1596aef1b Remove unclosed file guards 2015-07-14 07:44:34 -05:00
Stefan van der Walt 467253409f Subtle wording improvement to test setup docstring 2015-07-11 15:43:15 -05:00
Stefan van der Walt 83d5ff9001 Consistently use relative imports 2015-07-11 15:41:37 -05:00
Johannes Schönberger 574159f724 Add decorator to test parallel execution of unit test 2015-05-19 17:57:47 -07:00
Steven Silvester eed18b803f Another random warning guard 2015-03-29 15:36:25 -05:00
Johannes Schönberger ee5c6fbeb2 Use relative imports in skimage files 2015-01-22 07:36:48 -05:00
Steven Silvester 23ae571689 Fix final failing test on Py2.6 build 2014-12-24 08:49:51 -06:00
Steven Silvester d37ccca598 Fix Py2.7 build errors 2014-12-24 06:54:56 -06:00
Steven Silvester 4453120d96 Allow warnings in the minimum build 2014-12-24 06:36:04 -06:00
Steven Silvester 2a6b4ccaea Import scipy.sparse in setup_test 2014-12-24 06:34:13 -06:00
Steven Silvester 2d3ada19e5 Allow for no exceptions to be raised and cleanup
Allow for no exceptions to be raised

Add some helpful comments

Remove doctest skips

Remove TODO note

Cleanup and skip failing doctest
2014-12-23 16:51:18 -06:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -06:00
Steven Silvester 01ca1d17c8 Add a random seed to the setup 2014-12-23 16:51:04 -06:00
Steven Silvester 1b905d4cef More cleanup and updating of tests
Clean up setup_test and add a teardown_test method

Implement new setup/teardown in novice tests

Fix warning handling in pil_plugin

Update rank tests
2014-12-23 16:50:50 -06:00
Steven Silvester 782ba46a4c Handle more warnings
Punt on the issue of warnings with the minimum build

Handle warnings in measure pkg

Fix the rank filter test by forcing a random seed in the function

Compare as boolean in imread test

Import loadmat in test_setup to avoid warning

Use a setup method for imread plugin test

Revoke unintended changes

Fix indentation to appease jni

More indentation fixes

Fix unintentional comment out
2014-12-23 16:49:59 -06:00
Steven Silvester 6db92d387b More doctest and pil_plugin fixes
Fix Python2 imread in pil_plugin.

Load from data

Use all_warnings when importing the other packages

More fixes for regionprops doctest
2014-12-23 16:49:38 -06:00
Steven Silvester 4680f30466 Add a test setup helper function
Add a function to set up a skimage test

Switch to new test helper function

Import local packages that raise warnings in test setup function

More fixes to doctests

Fix regionprops doc test

Try and fix the test_rank failure.

Remove no longer needed RectangleSelector shim

Skip more doctests in _regionprops

Try importing another scipy subpackage
2014-12-23 16:49:20 -06:00
Steven Silvester 9e8f91930e Handle warnings in several packages
Start handling warnings in data, exposure, and draw

Add a known_warning decorator and suppress warnings in color pkg

Use the existing all_warnings context manager

Raise warnings in data

Raise warnings in draw

Raise warnings in exposure

Suppress warnings in exposure tests

Add comments about warning suppressions

Raise warnings in feature

Fix warnings in filter package

Add warning handling to graph

Handle warnings in io package
2014-12-23 16:47:41 -06:00
Pratap Vardhan b72a960670 DOC: Misc spell corrections 2014-12-16 11:41:24 +05:30
Steven Silvester a623fd3e44 Rename the convenience methods 2014-10-09 20:18:43 -05:00
Steven Silvester bae672f34b Do not try and save signed integer output, improved signed checks for tif. 2014-10-09 20:18:43 -05:00
Steven Silvester be279de2fa Fix handling of temp file removal 2014-10-09 20:18:43 -05:00
Steven Silvester ee755c6c0b Remove temporary file and clean up imports 2014-10-09 20:18:43 -05:00
Steven Silvester d9e169c518 Fix PIL tests, move helpers to _shared, fix widgets test 2014-10-09 20:18:21 -05:00
JDWarner d398b43051 ENH: Add doctest_skip_parser allowing conditional skipping of doctests 2013-11-20 11:20:42 -06:00
Tony S Yu 2cbe2e1f20 DOC: Fix attribution for testing function
The testing functions taken from scikit-learn were in a file with a copyright assigned to Pietro, but Andreas was resposible for the specific lines that were copied.
2012-09-16 15:44:52 -04:00
Tony S Yu f2d5b109e9 Add assert_greater compatibility function.
Fix tests to work with nose < 1.1.3. Compatibility functions borrowed from scikit-learn.
2012-09-13 22:17:24 -04:00