[SciPy-Dev] reading a module under test
Robert Kern
robert.kern at gmail.com
Mon May 14 17:33:26 EDT 2012
On Mon, May 14, 2012 at 9:01 PM, nicky van foreest <vanforeest at gmail.com> wrote:
> Hi,
>
> I would like to run a test on some code in my local branch of scipy.
> Now the problem in one of the test files is that it says
>
> from scipy import stats
>
> Now this reads the standard stats module, not the one I want to test,
> i.e, the one on my local branch. I changed the pythonpath, but this
> does not help.
I do an in-place build:
$ python setup.py build_src --inplace build_ext --inplace
Then add the source directory to the $PYTHONPATH. Remove your
installation in site-packages.
--
Robert Kern
More information about the SciPy-Dev
mailing list