<div class="gmail_quote">On 23 April 2013 17:39, holger krekel <span dir="ltr"><<a href="mailto:holger@merlinux.eu" target="_blank">holger@merlinux.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
for clarification why i think this needs more discussion and playing<br>
around: what exactly should a fixturemanagers __exit__() see<br>
as exception value?  If we have multiple "contextmanager" fixtures like this:<br>
<br>
    def test_fixtures(fix1, fix2, fix3, ...):<br>
<br>
and fix2's setup fails, should fix1's __exit__ see that exception?<br>
Or should only exceptions from the actual test body be seen and then<br>
be seen by each fixN's __exit__ repeatedly?<br>
<br>
What about fixtures that have caching scopes higher than "function"?<br>
Should they ever receive exceptions in their __exit__?<br></blockquote><div><br>Ah right... yes. I see how that is a problem.<br><br>Maybe then I need to refactor my context manager so it can used more easily as a funcarg. :)<br>
 <br>Brianna<br><br></div></div>-- <br>They've just been waiting in a mountain for the right moment: <a href="http://modernthings.org/">http://modernthings.org/</a>