(self)
| 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']: |