Hackfut Security File Manager
Current Path:
/opt/alt/python27/lib64/python2.7/site-packages/numpy/lib/tests
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
numpy
/
lib
/
tests
/
📁
..
📁
data
📄
test__datasource.py
(10.2 KB)
📄
test__datasource.pyc
(16.97 KB)
📄
test__datasource.pyo
(16.97 KB)
📄
test__iotools.py
(13.69 KB)
📄
test__iotools.pyc
(15.05 KB)
📄
test__iotools.pyo
(15.05 KB)
📄
test__version.py
(2.08 KB)
📄
test__version.pyc
(3.5 KB)
📄
test__version.pyo
(3.5 KB)
📄
test_arraypad.py
(41.65 KB)
📄
test_arraypad.pyc
(58.01 KB)
📄
test_arraypad.pyo
(58.01 KB)
📄
test_arraysetops.py
(9.85 KB)
📄
test_arraysetops.pyc
(10.03 KB)
📄
test_arraysetops.pyo
(10.03 KB)
📄
test_arrayterator.py
(1.42 KB)
📄
test_arrayterator.pyc
(2.07 KB)
📄
test_arrayterator.pyo
(2.07 KB)
📄
test_financial.py
(6.45 KB)
📄
test_financial.pyc
(7.34 KB)
📄
test_financial.pyo
(7.34 KB)
📄
test_format.py
(33.43 KB)
📄
test_format.pyc
(16.93 KB)
📄
test_format.pyo
(16.93 KB)
📄
test_function_base.py
(106.45 KB)
📄
test_function_base.pyc
(133.6 KB)
📄
test_function_base.pyo
(133.6 KB)
📄
test_index_tricks.py
(11.19 KB)
📄
test_index_tricks.pyc
(15.3 KB)
📄
test_index_tricks.pyo
(15.3 KB)
📄
test_io.py
(70.42 KB)
📄
test_io.pyc
(83.74 KB)
📄
test_io.pyo
(83.74 KB)
📄
test_nanfunctions.py
(27.57 KB)
📄
test_nanfunctions.pyc
(32.92 KB)
📄
test_nanfunctions.pyo
(32.92 KB)
📄
test_packbits.py
(951 B)
📄
test_packbits.pyc
(1.49 KB)
📄
test_packbits.pyo
(1.49 KB)
📄
test_polynomial.py
(4.97 KB)
📄
test_polynomial.pyc
(5.45 KB)
📄
test_polynomial.pyo
(5.45 KB)
📄
test_recfunctions.py
(29.91 KB)
📄
test_recfunctions.pyc
(36.29 KB)
📄
test_recfunctions.pyo
(36.29 KB)
📄
test_regression.py
(8.62 KB)
📄
test_regression.pyc
(13.85 KB)
📄
test_regression.pyo
(13.85 KB)
📄
test_shape_base.py
(12.42 KB)
📄
test_shape_base.pyc
(18.8 KB)
📄
test_shape_base.pyo
(18.8 KB)
📄
test_stride_tricks.py
(13.87 KB)
📄
test_stride_tricks.pyc
(16.21 KB)
📄
test_stride_tricks.pyo
(16.21 KB)
📄
test_twodim_base.py
(17.57 KB)
📄
test_twodim_base.pyc
(21.95 KB)
📄
test_twodim_base.pyo
(21.95 KB)
📄
test_type_check.py
(10.01 KB)
📄
test_type_check.pyc
(20.16 KB)
📄
test_type_check.pyo
(20.16 KB)
📄
test_ufunclike.py
(1.98 KB)
📄
test_ufunclike.pyc
(3.55 KB)
📄
test_ufunclike.pyo
(3.55 KB)
📄
test_utils.py
(1.43 KB)
📄
test_utils.pyc
(3.2 KB)
📄
test_utils.pyo
(3.2 KB)
Editing: test__version.py
"""Tests for the NumpyVersion class. """ from __future__ import division, absolute_import, print_function from numpy.testing import assert_, run_module_suite, assert_raises from numpy.lib import NumpyVersion def test_main_versions(): assert_(NumpyVersion('1.8.0') == '1.8.0') for ver in ['1.9.0', '2.0.0', '1.8.1']: assert_(NumpyVersion('1.8.0') < ver) for ver in ['1.7.0', '1.7.1', '0.9.9']: assert_(NumpyVersion('1.8.0') > ver) def test_version_1_point_10(): # regression test for gh-2998. assert_(NumpyVersion('1.9.0') < '1.10.0') assert_(NumpyVersion('1.11.0') < '1.11.1') assert_(NumpyVersion('1.11.0') == '1.11.0') assert_(NumpyVersion('1.99.11') < '1.99.12') def test_alpha_beta_rc(): assert_(NumpyVersion('1.8.0rc1') == '1.8.0rc1') for ver in ['1.8.0', '1.8.0rc2']: assert_(NumpyVersion('1.8.0rc1') < ver) for ver in ['1.8.0a2', '1.8.0b3', '1.7.2rc4']: assert_(NumpyVersion('1.8.0rc1') > ver) assert_(NumpyVersion('1.8.0b1') > '1.8.0a2') def test_dev_version(): assert_(NumpyVersion('1.9.0.dev-Unknown') < '1.9.0') for ver in ['1.9.0', '1.9.0a1', '1.9.0b2', '1.9.0b2.dev-ffffffff']: assert_(NumpyVersion('1.9.0.dev-f16acvda') < ver) assert_(NumpyVersion('1.9.0.dev-f16acvda') == '1.9.0.dev-11111111') def test_dev_a_b_rc_mixed(): assert_(NumpyVersion('1.9.0a2.dev-f16acvda') == '1.9.0a2.dev-11111111') assert_(NumpyVersion('1.9.0a2.dev-6acvda54') < '1.9.0a2') def test_dev0_version(): assert_(NumpyVersion('1.9.0.dev0+Unknown') < '1.9.0') for ver in ['1.9.0', '1.9.0a1', '1.9.0b2', '1.9.0b2.dev0+ffffffff']: assert_(NumpyVersion('1.9.0.dev0+f16acvda') < ver) assert_(NumpyVersion('1.9.0.dev0+f16acvda') == '1.9.0.dev0+11111111') def test_dev0_a_b_rc_mixed(): assert_(NumpyVersion('1.9.0a2.dev0+f16acvda') == '1.9.0a2.dev0+11111111') assert_(NumpyVersion('1.9.0a2.dev0+6acvda54') < '1.9.0a2') def test_raises(): for ver in ['1.9', '1,9.0', '1.7.x']: assert_raises(ValueError, NumpyVersion, ver) if __name__ == "__main__": run_module_suite()
Upload File
Create Folder