def requires_uncertainties(): return unittest.skipUnless(HAS_UNCERTAINTIES, 'Requires Uncertainties')
def requires_python3(): return unittest.skipUnless(PYTHON3, 'Requires Python 3.X.')
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)
def requires_numpy(): return unittest.skipUnless(HAS_NUMPY, 'Requires NumPy')
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')
def requires_proper_babel(): return unittest.skipUnless(HAS_PROPER_BABEL, 'Requires Babel with units support')
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)
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')
def requires_proper_babel(): return unittest.skipUnless(HAS_PROPER_BABEL, "Requires Babel with units support")
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")