Open GoogleCodeExporter opened 9 years ago
Issue 173 has been merged into this issue.
Original comment by fuzzyman
on 3 Sep 2012 at 12:01
The patched function is not a generator - so nose doesn't detect it. I'm not
sure what the best way to fix this is because calling a generator function
returns a generator - so even if nose could detect it the patch would be
removed once the generator is *created* and would not be in place for the
iterations.
Using patch in a with statement within the test function would be a workaround.
A fix that keeps the patch in place until the generator is exhausted doesn't
occur to me immediately (and in the *general case* is probably not possible /
useful). Do you have any thoughts?
Original comment by fuzzyman
on 3 Sep 2012 at 12:05
Original issue reported on code.google.com by
charlesa...@gmail.com
on 3 Sep 2012 at 11:51Attachments: