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

Skip to content

[MRG + 1] Too few arguments in formatting call #9298

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 3 commits into from
Jul 13, 2017

Conversation

SebastinSanty
Copy link
Contributor

Reference Issue

Fixes #9280

What does this implement/fix? Explain your changes.

Some placeholders for .format() weren't 0 indexed.

@SebastinSanty SebastinSanty changed the title Too few arguments in formatting call [MRG] Too few arguments in formatting call Jul 7, 2017
"match the input. Model n_features is {1} and "
"input n_features is {2} "
"match the input. Model n_features is {0} and "
"input n_features is {1} "
Copy link
Member

Choose a reason for hiding this comment

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

this means it was not covered by any test. Can you update existing test to catch this pb?

thx

Copy link
Contributor Author

@SebastinSanty SebastinSanty Jul 10, 2017

Choose a reason for hiding this comment

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

Yes, I'll check in with tests

print('ok')
except:
print("Unexpected error")
raise
Copy link
Contributor Author

@SebastinSanty SebastinSanty Jul 13, 2017

Choose a reason for hiding this comment

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

@agramfort Test like this?

@jnothman
Copy link
Member

jnothman commented Jul 13, 2017 via email

@SebastinSanty
Copy link
Contributor Author

Thanks @jnothman. Covered with tests now.

@amueller amueller changed the title [MRG] Too few arguments in formatting call [MRG + 1] Too few arguments in formatting call Jul 13, 2017
Copy link
Member

@amueller amueller left a comment

Choose a reason for hiding this comment

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

LGTM

@agramfort agramfort merged commit 924a466 into scikit-learn:master Jul 13, 2017
@agramfort
Copy link
Member

thx @SebastinSanty

jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Aug 6, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
* Too few arguments in formatting call

* Add test

* Covered with tests
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.

Too few arguments in formatting call
4 participants