Re: zope.testing.testrunner.debug.post_mortem and try/finally

Wichert Akkerman <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On 2009-12-2 23:06, Marius Gedminas wrote:
> On Wed, Dec 02, 2009 at 01:36:37PM -0500, Benji York wrote:
>> Here's another idea: a testrunner option that takes a file name and line
>> number and inserts a breakpoint at that position.  That way you can get
>> the same effect as editing the code without actually having to do so.
>
> Is that possible?  I once spent hours studying pdb docs and found no way
> to set a breakpoint in advance, without modifying the source file in
> question, and without having the user to do manual interaction at the
> beginning.

I think mr.freeze (see http://pypi.python.org/pypi/mr.freeze ) can do 
this. Perhaps there is some code there you could borrow.

Wichert.


-- 
Wichert Akkerman <[email protected]>   It is simple to make things.
http://www.wiggy.net/                  It is hard to make things simple.
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.