-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: allow to check for specific xlrd version and skip reader test if xlrd < 0.9 #5058
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
+7
−4
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should have asked this before I merged, but what does this actually get you? Aren't you using the same exact version as before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bleh -- indeed! ;) sorry about that... here though it would specify version explicitly ;)
probably default version in _skip_if_no_xlrd could be downgraded somewhat. as that url from buildbot shows -- previous test passed fine with 0.6 version but next one failed with it. but that would need more testing... I might check tomorrow on that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I didn't realize that's why you wanted to do that. You can't even find xlrd 0.6 on PyPI anymore (or at least I can't find it). But I guess that's what on Debian stable :-/. We'd have to discuss supporting xlrd 0.6 (because it'd also need to be a dep for one of the builds).
I would be -1 on different minimum versions for different parts of tests. Others? @jreback @cpcloud ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yarikoptic just an FYI you can compare versions much easier with the
distutils.versions.LooseVersion
class:I'm also -1 on different versions of things for different tests, although i do something kind of like this for
read_html
(basically if bs4 version is 4.2.0 then i raise, but that's only tested in one place and i skip tests otherwise)it would be ideal to have all of our tests support a single minimum version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Wed, 02 Oct 2013, Jeff Tratner wrote:
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate, Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you must have monkey-patched Excel, right? ExcelFile mandates xlrd >= 0.9.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Wed, 02 Oct 2013, Phillip Cloud wrote:
thanks -- I know it well ;) I just came up with the minimalistic patch
here. So +1 to replace that tuple comparison with LooseVersion(version)
comparison
btw -- while at it... you might like how we 'centralized' version
checking in PyMVPA:
versions "dict" gets populated upon request for a given module:
https://github.com/PyMVPA/PyMVPA/blob/HEAD/mvpa2/base/externals.py
and then we have a generic helper (not per module e.g. _skip_if_no_xlrd):
which also could have max_version .
Cheers
well, imho it is ok sooner or later for some tests support new functionality of
external modules while older ones being as good for whatever uses only
old goodies
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate, Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to keep posting here, but the entire test suite fails if you try to use 0.6.1 (after monkey-patching to remove all the checks for xlrd). Please tell us what you mean here @yarikoptic .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Wed, 02 Oct 2013, Jeff Tratner wrote:
I just wanted to address failure as in
http://nipy.bic.berkeley.edu/builders/pandas-py2.x-wheezy-sparc/builds/148/steps/shell_4/logs/stdio
which happened somehow here after preceding test... thus I assumed that
it might work ok with 0.6.1 ... may be it doesn't -- didn't check.
so whatever works for you -- works for me ;-)
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate, Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yarikoptic that's because the skip test is missing here :P let's change that instead.