[py-dev] py.test problem

holger krekel holger at merlinux.eu
Sun Sep 21 08:23:40 CEST 2008


Hi Simon, 

On Sat, Sep 20, 2008 at 18:29 -0400, Simon Burton wrote:
> I have hit this problem several times, when an assertion fails using py.test i get
> 
> AttributeError:   << 'frame' object has no attribute 'eval'
> 
> with no stack trace of where in py.test this occured. (only the stack trace of my test code).
> 
> Any ideas ?

hum, can't remember seeing this one.  Do you have an example? 
If not can you attach a traceback next time? 
 
> It looks like it has something to do with the magic that prints out the values of expressions
> in the assertion.

You can use --nomagic to turn it off. 
 
> I just did svn up on my py.test, it did not help.

that was 'dist'?  svn/py/trunk has a lot of cleaned up code
which might help remedy the problem.

sorry that i can't be more immediately helpful, 
thanks, 
holger



More information about the Pytest-dev mailing list