Skip to content

No output inside nose tests #8

Closed
akaihola opened this Issue Aug 25, 2011 · 9 comments

2 participants

@akaihola

When I insert an "import ipdb;ipdb.set_trace()" inside a nose test case, running of the tests pauses but nothing is output on the terminal.

I've made a patch to fix this in my fork of ipdb in February 2010: see akaihola/ipdb@0894324

Unfortunately my repository isn't a fork of yours. IIRC I created it by cloning svn.gotcha.python-hosting.com since there were no GitHub mirrors at that time.

@akaihola

I adapted my original patch to your current code and made it work with IPython >=0.10.2 as well:
akaihola/ipdb@bcf1e99

@gotcha
Owner
gotcha commented Aug 25, 2011

Can you turn it into a pull request ?

@akaihola
@gotcha
Owner
gotcha commented Aug 25, 2011

Ok, I'll manage myself then !

@gotcha
Owner
gotcha commented Aug 26, 2011

I made a branch where I use less code.

Can you test my 'issue8' branch ?

@akaihola

Your 'issue8' branch seems to work correctly (Python 2.7, nose 1.1.2, IPython 0.11).

@akaihola

Ah, one problem! If I have set_trace() in a loop, the first time it works ok, but if I hit c and arrive at set_trace() on the next iteration of the loop, the ipdb> prompt is missing (although all other output works correctly).

In my original patch this problem doesn't exist.

@gotcha
Owner
gotcha commented Aug 26, 2011

Last push should fix the loop issue. Can you confirm ?

@gotcha
Owner
gotcha commented Sep 1, 2011

As I also tested myself, I consider this issue closed.

Released as ipdb 0.6

@gotcha gotcha closed this Sep 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.