(Poly)
| 131 | |
| 132 | |
| 133 | def test_bad_conditioned_fit(Poly): |
| 134 | |
| 135 | x = [0., 0., 1.] |
| 136 | y = [1., 2., 3.] |
| 137 | |
| 138 | # check RankWarning is raised |
| 139 | with pytest.warns(RankWarning) as record: |
| 140 | Poly.fit(x, y, 2) |
| 141 | assert record[0].message.args[0] == "The fit may be poorly conditioned" |
| 142 | |
| 143 | |
| 144 | def test_fit(Poly): |