Skip to content

BUG/CI/TST: fix format strings #7285

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 1 commit into from
Jun 2, 2014
Merged

BUG/CI/TST: fix format strings #7285

merged 1 commit into from
Jun 2, 2014

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented May 30, 2014

Also test against an unsupported version of openpyxl (2.0.3)

closes #7284

@cpcloud cpcloud self-assigned this May 30, 2014
@jreback jreback added this to the 0.14.1 milestone May 30, 2014
@cpcloud
Copy link
Member Author

cpcloud commented May 30, 2014

repro'd the error so that's good:

https://travis-ci.org/cpcloud/pandas/jobs/26397310

@jreback
Copy link
Contributor

jreback commented May 31, 2014

does the warning happen of openpyxl is not installed at all? (or does this not get that far)
do we test if it's not installed but running the tests anyhow (need to assert that no warning is printed)

@cpcloud
Copy link
Member Author

cpcloud commented May 31, 2014

@jreback yes warning does happen on import of pandas ... thx for pointing that out

@cpcloud
Copy link
Member Author

cpcloud commented Jun 1, 2014

should this warn on import? or when openpyxl is actually used?

@jreback
Copy link
Contributor

jreback commented Jun 1, 2014

it really should warn only when used

@cpcloud
Copy link
Member Author

cpcloud commented Jun 1, 2014

in that case it should throw an error because it doesn't really work with incompatible versions ...

either warn at import or raise on use

@cpcloud
Copy link
Member Author

cpcloud commented Jun 1, 2014

we do this for html so it's not unprecedented

@jreback
Copy link
Contributor

jreback commented Jun 1, 2014

yeah maybe just that

@cpcloud
Copy link
Member Author

cpcloud commented Jun 1, 2014

well that was fun

@jreback
Copy link
Contributor

jreback commented Jun 1, 2014

is their a build that doesn't have openpyxl installed at all?

@cpcloud
Copy link
Member Author

cpcloud commented Jun 1, 2014

no they all have it

@cpcloud
Copy link
Member Author

cpcloud commented Jun 1, 2014

could remove from one of the py3 builds

@jreback
Copy link
Contributor

jreback commented Jun 1, 2014

yep take out the 3.2 maybe

@jreback
Copy link
Contributor

jreback commented Jun 1, 2014

just to make sure it fails (and also does not fall back to another engine - u have to set explicitly iirc)

@cpcloud
Copy link
Member Author

cpcloud commented Jun 2, 2014

@jreback ok here after squash?

@jreback
Copy link
Contributor

jreback commented Jun 2, 2014

yep though maybe add a note in whatsnew

@cpcloud
Copy link
Member Author

cpcloud commented Jun 2, 2014

good call

…penpyxl

instead of warning at import time

add openpyxl 2.0.3 to trigger travis fails on import
@jreback
Copy link
Contributor

jreback commented Jun 2, 2014

ok...merge when ready

cpcloud added a commit that referenced this pull request Jun 2, 2014
@cpcloud cpcloud merged commit e2fd405 into pandas-dev:master Jun 2, 2014
@jreback
Copy link
Contributor

jreback commented Jun 2, 2014

https://travis-ci.org/pydata/pandas/jobs/26564920

so i think you need to _skip_if_no_openpyxl in this test (before calling openpyxl_compat.is_compat()

numpy 1.9_master tests build doesn't have openpyxl installed at all (nor ANY excel stuff)

@cpcloud
Copy link
Member Author

cpcloud commented Jun 2, 2014

Hm ok must be happening in more than one place bc I fixed one of those already.

@cpcloud
Copy link
Member Author

cpcloud commented Jun 2, 2014

Oh on

@cpcloud
Copy link
Member Author

cpcloud commented Jun 2, 2014

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Compat pandas objects compatability with Numpy or Python functions Error Reporting Incorrect or improved errors from pandas IO Excel read_excel, to_excel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pandas 0.14 broke Python 2.6 support
2 participants