mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
fix import testing
This commit is contained in:
@@ -2,7 +2,10 @@ import sys
|
||||
import os.path
|
||||
|
||||
import numpy as np
|
||||
from numpy.testing import *
|
||||
from numpy.testing import (assert_raises,
|
||||
assert_equal,
|
||||
assert_array_almost_equal,
|
||||
)
|
||||
from numpy.testing.decorators import skipif
|
||||
|
||||
from skimage import data_dir
|
||||
@@ -148,4 +151,5 @@ class TestMultiImage():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from numpy.testing import run_module_suite
|
||||
run_module_suite()
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
from numpy.testing import *
|
||||
from numpy.testing import (assert_array_equal,
|
||||
assert_almost_equal,
|
||||
assert_equal,
|
||||
assert_array_almost_equal,
|
||||
)
|
||||
import numpy as np
|
||||
|
||||
import skimage.io._plugins._colormixer as cm
|
||||
@@ -136,4 +140,5 @@ class TestColorMixer(object):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from numpy.testing import run_module_suite
|
||||
run_module_suite()
|
||||
|
||||
Reference in New Issue
Block a user