Exemplo n.º 1
0
def requires_python3():
    return unittest.skipUnless(PYTHON3, 'Requires Python 3.X.')
Exemplo n.º 2
0
def requires_numpy18():
    if not HAS_NUMPY:
        return unittest.skip('Requires NumPy')
    return unittest.skipUnless(
        StrictVersion(NUMPY_VER) >= StrictVersion('1.8'),
        'Requires NumPy >= 1.8')
Exemplo n.º 3
0
def requires_numpy():
    return unittest.skipUnless(HAS_NUMPY, 'Requires NumPy')
Exemplo n.º 4
0
def requires_uncertainties():
    return unittest.skipUnless(HAS_UNCERTAINTIES, 'Requires Uncertainties')
Exemplo n.º 5
0
def requires_numpy18():
    return unittest.skipUnless(NUMPY_VER >= '1.8', 'Requires NumPy >= 1.8')
Exemplo n.º 6
0
def requires_numpy_previous_than(version):
    if not HAS_NUMPY:
        return unittest.skip('Requires NumPy')
    return unittest.skipUnless(
        StrictVersion(NUMPY_VER) < StrictVersion(version),
        'Requires NumPy < %s' % version)
Exemplo n.º 7
0
def requires_python3():
    return unittest.skipUnless(PYTHON3, 'Requires Python 3.X.')
Exemplo n.º 8
0
def requires_uncertainties():
    return unittest.skipUnless(HAS_UNCERTAINTIES, 'Requires Uncertainties')
Exemplo n.º 9
0
def requires_numpy():
    return unittest.skipUnless(HAS_NUMPY, 'Requires NumPy')
Exemplo n.º 10
0
def requires_numpy18():
    if not HAS_NUMPY:
        return unittest.skip('Requires NumPy')
    return unittest.skipUnless(StrictVersion(NUMPY_VER) >= StrictVersion('1.8'), 'Requires NumPy >= 1.8')
Exemplo n.º 11
0
def requires_numpy_previous_than(version):
    if not HAS_NUMPY:
        return unittest.skip('Requires NumPy')
    return unittest.skipUnless(StrictVersion(NUMPY_VER) < StrictVersion(version), 'Requires NumPy < %s' % version)