Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MNT towards removing assert_equal, etc #14222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Jul 1, 2019

Conversation

adrinjalali
Copy link
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
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
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