Replaced assert_raises from utils/tests/test_estimator_checks
+# We can not use pytest here, because we run
+# build_tools/azure/test_pytest_soft_dependency.sh on these
+# tests to make sure estimator_checks works without pytest.
+
import unittest
import sys
@@ -139,6 +143,7 @@ class HasImmutableParameters(BaseEstimator):
X, y = self._validate_data(X, y)
return self
+
class ModifiesValueInsteadOfRaisingError(BaseEstimator):
def __init__(self, p=0):
self.p = p
