New issue 692: xfail decorator seems not to honour "raises" parameter
https://bitbucket.org/pytest-dev/pytest/issue/692/xfail-decorator-seems-not-to-honour-raises

henning sprang:

When trying to use the pytest "xfail" decorator together with it's "raises" 
parameter to become aware of changes in the application behaviour when 
currently dysfunctional part of the application start work again and we'll not 
get basic technical errors but actual assertion failure (or, eventually, a 
*different* not yet expected application error), I observe that the raises 
parameter is no taken into account at all.

Whatever I put in there, and whatever reason the test fails inside (error when 
caling application or asertion, independent of which error or exception is 
thrown), the test is simply reported as expected to fail - unles it succeeds 
with absolutely no error and exception, then it's reported as xpassed.

See example and discussion there:

http://stackoverflow.com/questions/28916186/pytest-using-xfail-together-with-raises-test-keep-xfailiing-though-unexpected?noredirect=1#comment46090691_28916186


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to