(self)
| 521 | assert str(p).replace('\n', ' ') == s |
| 522 | |
| 523 | def test_non_finite(self): |
| 524 | p = poly.Polynomial([nan, inf]) |
| 525 | assert str(p) == 'nan + inf x' |
| 526 | assert p._repr_latex_() == r'$x \mapsto \text{nan} + \text{inf}\,x$' |
| 527 | with printoptions(nanstr='NAN', infstr='INF'): |
| 528 | assert str(p) == 'NAN + INF x' |
| 529 | assert p._repr_latex_() == \ |
| 530 | r'$x \mapsto \text{NAN} + \text{INF}\,x$' |
nothing calls this directly
no test coverage detected