From: Manuel Pégourié-Gonnard <m...@elzevir.fr>
Date: Fri, 5 Oct 2012 10:50:45 +0200 (CEST)
Local: Fri, Oct 5 2012 4:50 am
Subject: Re: How can I hide my stack frames in a TestCase subclass?
Peter Otten scripsit :
> Manuel P gouri -Gonnard wrote:Fair enough.
>> Peter Otten scripsit :
>>> __unittest = True
>> Hum, is it documented somewhere? I can't find it in the doc. Also, I'm
> I took advantage of the fact that Python is open source and had a look into
However, there was an implied question in the "documented" part: can
> $ cd /usr/lib/python2.7/unittestSure, thanks.
> $ grep frame *.py -C2
> result.py- def _is_relevant_tb_level(self, tb):
> result.py: return '__unittest' in tb.tb_frame.f_globals
> $ grep _is_relevant_tb_level *.py -C5
> And so on. I actually used an editor, not grep -- but you get the idea.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.