-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[MRG+1] move trait import out of try block
#3648
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
Conversation
0b92520 to
dd8a9fe
Compare
|
travis not happy |
e881441 to
1def408
Compare
Current coverage is 87.39% (diff: 98.46%)@@ master #3648 diff @@
==========================================
Files 343 343
Lines 60765 60739 -26
Methods 0 0
Messages 0 0
Branches 9300 9300
==========================================
- Hits 53108 53081 -27
- Misses 4903 4904 +1
Partials 2754 2754
|
a02e6f2 to
72ad682
Compare
try blocktry block
|
Tests pass now. I had to modify the |
72ad682 to
612cccb
Compare
.travis.yml
Outdated
|
|
||
| script: | ||
| - nosetests -a '!ultra_slow_test' --with-timer --timer-top-n 30 --verbosity=2 $COVERAGE | ||
| - nosetests -a '!ultra_slow_test' --ignore-files=^_\\w*_gui.py --ignore-files=_file_traits.py --ignore-files=_viewer.py --with-timer --timer-top-n 30 --verbosity=2 $COVERAGE |
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.
can you see if these ignores can be added to our setup.cfg instead of going in here? That way things like nosetests and make test will pick them up, too.
| except ImportError: | ||
| _tab_ignores += ['mne.gui.' + name for name in | ||
| ('_coreg_gui', '_fiducials_gui', '_file_traits', | ||
| '_help', '_kit2fiff_gui', '_marker_gui', '_viewer')] |
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.
Can we nest this in the test itself so that the import is only attempted within that test?
try blocktry block
74afae0 to
aa4bfb8
Compare
|
It seems ot be working now, @Eric89GXL your suggestions are implemented |
try blocktry block
| # traits library is not installed | ||
| return lambda x: x | ||
|
|
||
|
|
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.
Do we need requires_traits anymore?
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.
We don't use it anymore, but it's technically public API... should I remove it?
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.
Yeah it should be fine to remove it
|
can someone confirms that this works on a machine that does not have mayavi installed? |
Shouldn't Travis take care of it? |
|
I suppose but let's be sure...
|
|
I threw a +1 for merge |
try blocktry block
WIP following up on #3383