[py-dev] pytest-cov

James Mills prologic at shortcircuit.net.au
Fri Jul 9 10:55:53 CEST 2010


On Fri, Jul 9, 2010 at 6:39 PM, meme dough <memedough at gmail.com> wrote:
> Did you try deleting all .pyc and .pyo files in
> /home/prologic/work/circuits recursively and then trying?

Yes, tried and same result.

> Since it looks like python 2.6 will create the pyc files in the master
> process and then the popen to python 2.5 barfs on them.  As Holger
> pointed out PYTHONDOWNWRITEBYTECODE should turn off the master python
> 2.6 creating pyc files.  But if you've still got old ones lying around
> then the slave python 2.5 will no doubt barf.

Also tried, same result.

> Another solution to this maybe to give each test process it's own
> area.  So change the working dir of each tx and specify the rsync
> option to get the proper code to each test area (I assume the rsync
> doesn't push pyc files).  Also that way if your code relies on it's
> own resources in the dir tree (writing out to a log file for example)
> then they will be separate and not clash.

Could you show an example tx config that does thsi ?

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"



More information about the Pytest-dev mailing list