Remove unit tests for deprecated features

This commit is contained in:
Johannes Schönberger
2016-02-09 12:25:55 +01:00
parent e82849a544
commit 116ef0d649
2 changed files with 0 additions and 20 deletions
-9
View File
@@ -301,14 +301,5 @@ def test_ransac_invalid_input():
residual_threshold=0, stop_probability=1.01)
def test_deprecated_params_attribute():
model = LineModelND()
model.params = ((0, 0), (1, 1))
x = np.arange(-10, 10)
y = model.predict_y(x)
with expected_warnings(['`_params`']):
assert_equal(model.params, model._params)
if __name__ == "__main__":
np.testing.run_module_suite()
-11
View File
@@ -249,17 +249,6 @@ def test_invalid_input():
assert_raises(ValueError, PolynomialTransform, np.zeros((3, 3)))
def test_deprecated_params_attributes():
for t in ('projective', 'affine', 'similarity'):
tform = estimate_transform(t, SRC, DST)
with expected_warnings(['`_matrix`.*deprecated']):
assert_equal(tform._matrix, tform.params)
tform = estimate_transform('polynomial', SRC, DST, order=3)
with expected_warnings(['`_params`.*deprecated']):
assert_equal(tform._params, tform.params)
def test_degenerate():
src = dst = np.zeros((10, 2))