On Wednesday, 9 July 2014 05:53:30 UTC+2, Jason Moore wrote:
>
> I typically use `ipython --pdb` then import and run the specific test 
> in the interpreter. 
>

I do something similar, but I prefer pudb (pip install pudb):

$ PYTHONPATH=../../.. python -c "from test_finite_diff import 
test_apply_finite_diff as test; import pudb; pudb.set_trace(); test()"



> Jason 
> moorepants.info 
> +01 530-601-9791 
>
>
> On Tue, Jul 8, 2014 at 9:04 PM, Tim Lahey <[email protected] <javascript:>> 
> wrote: 
> > Hi, 
> > 
> > Is there an easy way to run a test and trace the execution in PDB? 
> There's a 
> > test that fails intermittently and I'd like to run it with a specific 
> seed 
> > (which I know causes it to fail), but I want to run it inside of PDB. Is 
> > there an option for bin/tests for it or do I just have to load PDB and 
> then 
> > run the test? 
> > 
> > Thanks, 
> > 
> > Tim. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sympy" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/sympy. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/sympy/9CE9526F-276E-405C-82F2-BF6BDF592252%40gmail.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/8179446f-585b-48b2-bace-e9f1a4ae0598%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to