/
usr
/
local
/
lib64
/
python3.6
/
site-packages
/
numpy
/
core
/
tests
/
/usr/local/lib64/python3.6/site-packages/numpy/core/tests
mkdir
upload
Name
Size
Mode
Actions
data/
-
0755
rm
__pycache__/
-
0755
rm
test_abc.py
2328
0644
edit
dl
rm
test_api.py
20806
0644
edit
dl
rm
test_arrayprint.py
34493
0644
edit
dl
rm
test_conversion_utils.py
4981
0644
edit
dl
rm
test_cpu_features.py
6785
0644
edit
dl
rm
test_datetime.py
108192
0644
edit
dl
rm
test_defchararray.py
24381
0644
edit
dl
rm
test_deprecations.py
24187
0644
edit
dl
rm
test_dtype.py
49291
0644
edit
dl
rm
test_einsum.py
45197
0644
edit
dl
rm
test_errstate.py
2066
0644
edit
dl
rm
test_extint128.py
5643
0644
edit
dl
rm
test_function_base.py
13148
0644
edit
dl
rm
test_getlimits.py
4297
0644
edit
dl
rm
test_half.py
23102
0644
edit
dl
rm
test_indexerrors.py
5130
0644
edit
dl
rm
test_indexing.py
49260
0644
edit
dl
rm
test_item_selection.py
3579
0644
edit
dl
rm
test_longdouble.py
13041
0644
edit
dl
rm
test_machar.py
1066
0644
edit
dl
rm
test_memmap.py
7464
0644
edit
dl
rm
test_mem_overlap.py
28855
0644
edit
dl
rm
test_multiarray.py
319797
0644
edit
dl
rm
test_nditer.py
112298
0644
edit
dl
rm
test_numeric.py
124118
0644
edit
dl
rm
test_numerictypes.py
20846
0644
edit
dl
rm
test_overrides.py
14433
0644
edit
dl
rm
test_print.py
6737
0644
edit
dl
rm
test_protocols.py
1168
0644
edit
dl
rm
test_records.py
19694
0644
edit
dl
rm
test_regression.py
88840
0644
edit
dl
rm
test_scalarbuffer.py
4065
0644
edit
dl
rm
test_scalarinherit.py
2127
0644
edit
dl
rm
test_scalarmath.py
28565
0644
edit
dl
rm
test_scalarprint.py
15158
0644
edit
dl
rm
test_scalar_ctors.py
2580
0644
edit
dl
rm
test_scalar_methods.py
4063
0644
edit
dl
rm
test_shape_base.py
24679
0644
edit
dl
rm
test_ufunc.py
83978
0644
edit
dl
rm
test_umath.py
121442
0644
edit
dl
rm
test_umath_accuracy.py
3044
0644
edit
dl
rm
test_umath_complex.py
23145
0644
edit
dl
rm
test_unicode.py
12553
0644
edit
dl
rm
test__exceptions.py
2005
0644
edit
dl
rm
_locales.py
2192
0644
edit
dl
rm
__init__.py
0
0644
edit
dl
rm
Edit:
/usr/local/lib64/python3.6/site-packages/numpy/core/tests/test_abc.py
(2328B)
from numpy.testing import assert_ import numbers import numpy as np from numpy.core.numerictypes import sctypes class TestABC: def test_abstract(self): assert_(issubclass(np.number, numbers.Number)) assert_(issubclass(np.inexact, numbers.Complex)) assert_(issubclass(np.complexfloating, numbers.Complex)) assert_(issubclass(np.floating, numbers.Real)) assert_(issubclass(np.integer, numbers.Integral)) assert_(issubclass(np.signedinteger, numbers.Integral)) assert_(issubclass(np.unsignedinteger, numbers.Integral)) def test_floats(self): for t in sctypes['float']: assert_(isinstance(t(), numbers.Real), "{0} is not instance of Real".format(t.__name__)) assert_(issubclass(t, numbers.Real), "{0} is not subclass of Real".format(t.__name__)) assert_(not isinstance(t(), numbers.Rational), "{0} is instance of Rational".format(t.__name__)) assert_(not issubclass(t, numbers.Rational), "{0} is subclass of Rational".format(t.__name__)) def test_complex(self): for t in sctypes['complex']: assert_(isinstance(t(), numbers.Complex), "{0} is not instance of Complex".format(t.__name__)) assert_(issubclass(t, numbers.Complex), "{0} is not subclass of Complex".format(t.__name__)) assert_(not isinstance(t(), numbers.Real), "{0} is instance of Real".format(t.__name__)) assert_(not issubclass(t, numbers.Real), "{0} is subclass of Real".format(t.__name__)) def test_int(self): for t in sctypes['int']: assert_(isinstance(t(), numbers.Integral), "{0} is not instance of Integral".format(t.__name__)) assert_(issubclass(t, numbers.Integral), "{0} is not subclass of Integral".format(t.__name__)) def test_uint(self): for t in sctypes['uint']: assert_(isinstance(t(), numbers.Integral), "{0} is not instance of Integral".format(t.__name__)) assert_(issubclass(t, numbers.Integral), "{0} is not subclass of Integral".format(t.__name__))
Save
cmd:
run