Skip to content

Conversation

@sameshl
Copy link
Contributor

@sameshl sameshl commented Aug 13, 2019

removed the use of assert_raises and assert_raises_regex
from sklearn/cluster/tests/test_hierarchical.py

changed assert_raises to with pytest.raises context manager

fixes #14216

I still have to complete the whole sklearn/cluster/tests/ folder. I just wanted to get a review if any other changes are required.
Thanks!

removed the use of assert_raises and assert_raises_regex
from `sklearn/cluster/tests/test_hierarchical.py`

changed `assert_raises` to `with pytest.raises` context manager
@thomasjpfan thomasjpfan merged commit 4aded39 into scikit-learn:master Aug 14, 2019
@thomasjpfan
Copy link
Member

Thank you @sameshl!

@sameshl sameshl deleted the cluster_assert_raises branch August 14, 2019 05:16
@sameshl sameshl restored the cluster_assert_raises branch August 14, 2019 05:16
@sameshl sameshl deleted the cluster_assert_raises branch August 14, 2019 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the use of assert_raises and assert_raises_regex from the tests

3 participants