Enable simpler testing with a top-level test() function

Bug #504450 reported by Fernando Perez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IPython
Fix Committed
High
Fernando Perez

Bug Description

python -c "import IPython;IPython.test()"

should just work.

Related branches

Changed in ipython:
status: New → In Progress
assignee: nobody → Fernando Perez (fdo.perez)
importance: Undecided → High
milestone: none → 0.11
Revision history for this message
Fernando Perez (fdo.perez) wrote :

Fix in my trunk-dev branch, soon in trunk.

Changed in ipython:
status: In Progress → Fix Committed
Revision history for this message
Brian Granger (ellisonbg) wrote : Re: [Bug 504450] Re: Enable simpler testing with a top-level test() function

How did you implement this? Does test() just call the command line iptest?

If so, we should make sure iptest can be found on Windows. If you
remember, we have run into lots of problems finding things like
ipcontroller/ipengine on Windows (which ipcluster does).

Brian

On Thu, Jan 7, 2010 at 3:59 PM, Fernando Perez <email address hidden> wrote:
> Fix in my trunk-dev branch, soon in trunk.
>
> ** Changed in: ipython
>       Status: In Progress => Fix Committed
>
> ** Branch linked: lp:~fdo.perez/ipython/trunk-dev
>
> --
> Enable simpler testing with a top-level test() function
> https://bugs.launchpad.net/bugs/504450
> You received this bug notification because you are a member of IPython
> Developers, which is subscribed to IPython.
>
> Status in IPython - Enhanced Interactive Python: Fix Committed
>
> Bug description:
> python -c "import IPython;IPython.test()"
>
> should just work.
>
>
>

--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
<email address hidden>
<email address hidden>

Revision history for this message
Fernando Perez (fdo.perez) wrote :

On Thu, Jan 7, 2010 at 4:15 PM, Brian Granger <email address hidden> wrote:
> How did you implement this?  Does test() just call the command line
> iptest?

Kind of: it actually calls run_iptestall(), but that one does end up
calling iptest and trial at the command line. We do use
genutils.find_cmd(), so the same machinery for finding things is used,
and I actually find it from the IPython path if find_cmd fails, so it
should be reasonably robust and os-independent.

> If so, we should make sure iptest can be found on Windows.  If you
> remember, we have run into lots of problems finding things like
> ipcontroller/ipengine on Windows (which ipcluster does).

Cheers,

f

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.