Re: [myhdl-list] cpython, pypy, and py.test
Brought to you by:
jandecaluwe
From: Dan W. <eti...@gm...> - 2011-06-27 02:45:45
|
On Sun, Jun 26, 2011 at 1:52 PM, Christopher Felton <chr...@gm...> wrote: > Does anyone have a good method to use either, cpython or pypy, with > py.test? Jan's speed post came about just as I was testing some HDL for an upcoming mixed-signal ASIC, here's the hack-way I've done it: (requires the extra pytest-xdist plugin) py.test --dist=load --tx 4*popen//python=pypy and half the processes when using cosimulation It's been a killer combination for long-running tests, especially when using Rackspace instances to keep my main machine free while they run. For some reason, running as a module under pypy fails if there are extra cmd line arguments related to xdist, hence the above work-around: "python -m pytest foo.py" and "python -m pytest -n4 foo.py" and "pypy -m pytest -v foo.py" work properly, but any options fail with e.g.: "pypy -m pytest -n4 foo.py" tox would be better for more formal multi-platform release stuff, though. HTH, Dan -- SDG www.whiteaudio.com |