-
Notifications
You must be signed in to change notification settings - Fork 437
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
BF: fix import statement for get_cmap #397
Conversation
I think you can't do ``import module.attribute as attribute``, and you have to do something like ``from module import attribute``.
Is there some way to create a test that fails without this fix? Any way to inject a value into the |
Actually the buildbots picked this one up here: http://nipy.bic.berkeley.edu/builders/dipy-py2.6-osx-10.5-ppc/builds/312/steps/shell_8/logs/stdio I guess we have to continue making sure some buildbots don't have matplotlib... |
Oh - nice. Do you think there is any general way to simulate not having mpl On Wed, Jul 30, 2014 at 12:24 AM, Matthew Brett notifications@github.com
|
I could imagine some sort of run-time patch to the optional package routines so that matplotlib appeared to be not installed, but that would have to be applied once before all relevant imports, so it would be fiddly to get right. We can certainly run an extra series of tests on travis, where we break matplotlib import somehow before testing. |
OK - do you want to do this here, or would you prefer to put in an issue so On Wed, Jul 30, 2014 at 10:24 AM, Matthew Brett notifications@github.com
|
Added issue : #400 - OK to merge? |
BF: fix import statement for get_cmap
Thanks |
I think you can't do
import module.attribute as attribute
, and you have todo something like
from module import attribute
.