Skip to content

MNT towards removing assert_equal, etc#14222

Merged
NicolasHug merged 22 commits intoscikit-learn:masterfrom
adrinjalali:nose2pytest
Jul 1, 2019
Merged

MNT towards removing assert_equal, etc#14222
NicolasHug merged 22 commits intoscikit-learn:masterfrom
adrinjalali:nose2pytest

Conversation

@adrinjalali
Copy link
Copy Markdown
Member

Towards #14215

This moves the codebase towards removing the assert_equal, etc.

Some instances are still left, since the nose2pytest did not fix them.

Copy link
Copy Markdown
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all automatic, yeah?

@adrinjalali
Copy link
Copy Markdown
Member Author

nose2pytest doesn't properly handle the case when you have:

assert_equal(condition, "starting "
                        "a very long message")

It generates invalid code, and those are the ones I manually fixed, and then there were a bunch of pep8 issues that I fixed separately mostly in 0e5d4e7

Then there was removal of the unused imports, which autoflake does, but it also removes the unnecessary pass lines. Since I didn't want to touch those ones in this PR, I modified autoflake to ignore those passs and they're kept in the code.

@adrinjalali adrinjalali changed the title MNT towards removing assert_equal, etc [MRG+2] MNT towards removing assert_equal, etc Jul 1, 2019
@NicolasHug NicolasHug changed the title [MRG+2] MNT towards removing assert_equal, etc MNT towards removing assert_equal, etc Jul 1, 2019
@NicolasHug NicolasHug merged commit 19c068a into scikit-learn:master Jul 1, 2019
@adrinjalali adrinjalali deleted the nose2pytest branch July 1, 2019 13:14
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.

4 participants