-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add pd.test to enable nose test runnning from the imported session, #4327 #11913
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
any comments / objections? anything further I should add to docs? |
ENH: add pd.test to enable nose test runnning from the imported session, #4327
Maybe I'm just making trouble, but should we consider switching to pytest? |
I actually do like pytest better - fixtures IMHO are much nicer is there an easy / automated way to convert things? |
convert is not the right word / more of adjust |
I also prefer pytest (using it for my personal projects), but the question is maybe also how much effort it is to switch such a big test suite. Matplotlib is switching from nose to pytest: matplotlib/matplotlib#5405 |
and xref: #10788 |
FYI: http://pytest.readthedocs.org/en/latest/nose.html specifically Unsupported idioms / known issues
Just ran them both, Nose
(Two of those errors are from the branch I'm working on, not sure about the cause of the others) Pytest
Just glancing at the output the majority of the additional failures came from |
Hi, I noticed an issue when attempting to use the new pd.test() function, at least on a windows machine.
However if I browse out of the pandas folder, it works properly:
I think this may be because while in the root folder, I don't know if this is really important given that people running a develop instance of pandas from the git repo will know how to run the tests separately but I though I would flag this up. I can replicate this problem on windows after following the steps to setup a dev instance of pandas from the documentation. |
@clembou good point. I think that if this is run in a development version then it should fail loudly (if the extensions are not built), or work. Can you create a separate issue for this (and PR to fix if you can) |
Hmm, is there good reason to prefer pytest to nose? |
@charris I really like you guys thinking of changing in numpy? |
@jreback No. I was just surprised that there was a package that others would consider for the role. A quick look does show some interesting features in pytest, but currently nose works well enough for numpy, at least in my opinion ;) |
closes #4327
copied from
numpy
nosetester.