(Poly)
| 137 | |
| 138 | |
| 139 | def test_bad_conditioned_fit(Poly): |
| 140 | |
| 141 | x = [0., 0., 1.] |
| 142 | y = [1., 2., 3.] |
| 143 | |
| 144 | # check RankWarning is raised |
| 145 | with pytest.warns(RankWarning) as record: |
| 146 | Poly.fit(x, y, 2) |
| 147 | assert record[0].message.args[0] == "The fit may be poorly conditioned" |
| 148 | |
| 149 | |
| 150 | def test_fit(Poly): |
nothing calls this directly
no test coverage detected
searching dependent graphs…