MCPcopy Index your code
hub / github.com/numpy/numpy / test_complex

Method test_complex

numpy/_core/tests/test_abc.py:31–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 f"{t.__name__} is subclass of Rational")
30
31 def test_complex(self):
32 for t in sctypes['complex']:
33 assert_(isinstance(t(), numbers.Complex),
34 f"{t.__name__} is not instance of Complex")
35 assert_(issubclass(t, numbers.Complex),
36 f"{t.__name__} is not subclass of Complex")
37 assert_(not isinstance(t(), numbers.Real),
38 f"{t.__name__} is instance of Real")
39 assert_(not issubclass(t, numbers.Real),
40 f"{t.__name__} is subclass of Real")
41
42 def test_int(self):
43 for t in sctypes['int']:

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
tFunction · 0.85

Tested by

no test coverage detected