[pypy-dev] Question on snake server test runs
Antonio Cuni
anto.cuni at gmail.com
Tue Apr 25 17:06:09 CEST 2006
Hi Sanghyeon,
Sanghyeon Seo wrote:
> http://snake.cs.uni-duesseldorf.de/pypytest/summary.html
>
> I added a py.test option to pretty-print Common Lisp source files, and
> tests on snake server started to fail. Samuele told me that it might
> depend on the working directory from which py.test is run, but no
> matter how I try, I couldn't reproduce the failure in my machine.
>
> So my question is: how are tests run on snake server? How can I fix
> this failure?
>
> E if conftest.option.prettyprint:
>> AttributeError: Values instance has no attribute 'prettyprint'
I had the same problem with gencli: I solved using an helper function
that catches AttributeError and returns a default value instead, even if
it seems more a hack than a solution. See translator/cli/option.py.
ciao Anto
More information about the Pypy-dev
mailing list