alfredodeza / pytest.vim

Runs your UnitTests with py.test displaying red/green bars and errors
274 stars 40 forks source link

`No failed tests from a previous run` lies #31

Closed alfredodeza closed 8 years ago

alfredodeza commented 8 years ago

When the output looks like:

============================= test session starts ==============================
platform darwin -- Python 2.7.6 -- py-1.4.30 -- pytest-2.7.3
rootdir: /Users/alfredo/python/merfi, inifile: 
collected 6 items

tests/test_repocollector.py F

=================================== FAILURES ===================================
______________ TestRepoCollector.test_debian_nested_release_files ______________
tests/test_repocollector.py:33: in test_debian_nested_release_files
    paths = RepoCollector.debian_release_files(path)
collector.py:69: in debian_release_files
    root, dirs, files = next(walk(dists))
E   StopIteration
=========================== 1 failed in 0.03 seconds ===========================
alfredodeza commented 8 years ago

This is happening because the exception is not an AssertionError and it is not an exception with a message, which the plugin assumes either of. The fix means that it needs to detect an exception with no message that is not an AssertionError

alfredodeza commented 8 years ago

Fixed with 71d813d1e74266c9c1032dfcfd57dbe6b3def41b