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

Neil Shepperd nshepperd at gmail.com
Mon Sep 22 03:53:48 CEST 2008


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']




More information about the Pytest-dev mailing list