Did I find the right examples for you? yes no

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/n/i/nipy-0.3.0/nipy/labs/viz_tools/slicers.py   nipy(Download)
 
import numpy as np
from nipy.utils.skip_test import skip_if_running_nose
 
try:
    import matplotlib as mpl
    import pylab as pl
    from matplotlib import transforms
except ImportError:
    skip_if_running_nose('Could not import matplotlib')

src/n/i/nipy-0.3.0/nipy/labs/viz_tools/cm.py   nipy(Download)
import numpy as _np
 
from nipy.utils.skip_test import skip_if_running_nose
 
try:
    from matplotlib import cm as _cm
    from matplotlib import colors as _colors
except ImportError:
    skip_if_running_nose('Could not import matplotlib')

src/n/i/nipy-0.3.0/nipy/labs/viz_tools/activation_maps.py   nipy(Download)
 
# Import pylab
from nipy.utils.skip_test import skip_if_running_nose
 
try:
    import pylab as pl
except ImportError:
    skip_if_running_nose('Could not import matplotlib')

src/n/i/nipy-0.3.0/nipy/utils/tests/test_skip_test.py   nipy(Download)
 
import nose
from nipy.utils.skip_test import skip_if_running_nose
 
# First we must check that during test loading time, our skip_test does
# fire
try:
    skip_if_running_nose()
def test_not_raise_at_run_time():
    """ Check that SkipTest is not raised at run time 
    """
    try:
        skip_if_running_nose()