[py-dev] py.test --looponfailing (SVN r58313) AssertionError

holger krekel holger at merlinux.eu
Mon Sep 22 15:16:43 CEST 2008


Hi Neil, 

thanks for your good report!   I just committed a fix in 58319
let me know if it solves the issue. 

holger

On Mon, Sep 22, 2008 at 11:53 +1000, Neil Shepperd wrote:
> Hi all,
> 
> Py.test dies with an assertion error when I change the name
> of a failing test, or move the file or directory it's in. It
> looks like it's just trying to get the result of the test without
> checking whether it exists first.
> 
> This is with the HEAD revision.
> 
> Neil
> 
> ----------------
> Example:
> 
> [test_blah.py]
> def test_blah():
>     assert False
> 
> $ py.test --looponfailing
> 
> [edit test_blah.py]
> -def test_blah():
> +def test_x():
> 
> Traceback (most recent call last):
> ...
> AssertionError: Collector <Module 'test_blah.py'> does not have name
> 'test_blah' existing names are: ['test_blah.py']
> 
> _______________________________________________
> py-dev mailing list
> py-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/py-dev
> 

-- 
collaborative expert contracting: http://merlinux.eu 
PyPy  Python/Compiler tool chain: http://codespeak.net/pypy 
pylib py.test/greenlets/svn APIs: http://pylib.org 



More information about the Pytest-dev mailing list