On Mon, Mar 14, 2011 at 10:42 PM, James Mills
<prolo...@shortcircuit.net.au> wrote:
> After some testing I reproduced the problem.
>
> The behavior I'm seeing only occurs with Python 3.2
>
> Would this be a problem with pytest, puytest_cov or coverage wrt Python 3 ?

Okay. Lesson learned.

If you import from your package/modules that you're testing
in conftest.py (say you want to provide some common funcargs)
then you'll see this behavior.

If however you import within the funcarg function itself
then it's all "good" :)

Tip: Don't do top-level imports of your package/modules under
test in conftest.py

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"
_______________________________________________
py-dev mailing list
py-dev@codespeak.net
http://codespeak.net/mailman/listinfo/py-dev

Reply via email to