forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 4
Tips & Tricks
Jeff Tratner edited this page Jun 29, 2013
·
10 revisions
In [1]: from distutils.version import LooseVersion
In [2]: LooseVersion(np.__version__)>='1.7.0'
Out[2]: Trueimport nose
try:
import a_module
except ImportError:
raise nose.SkipTestgit remote add upstream git://github.com/pydata/pandasgit fetch upstreamgit fetch upstream
git rebase upstream/mastergit fetch upstream
git rebase --interactive upstream/masterThis tip allows you to rebase relative to upstream/master which allows you to do squash commits from the point at which your fork diverged from pandas upstream
nosetests -Isome_test_namenosetests -x# stores ids
nosetests --with-ids
# runs only tests that previously failed
nosetests --failed