1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/f1fcd44e587b/
Changeset:   f1fcd44e587b
User:        hpk42
Date:        2014-10-14 08:02:21+00:00
Summary:     Merged in tomviner/pytest (pull request #222)

fix issue552: Add a note to the docs about marking single callables
Affected #:  1 file

diff -r cb1ab2ce0f47d7ce77ccf3e2c2caa52e1e729e2f -r 
f1fcd44e587bd193cdc96ae6c08ba509edff581a doc/en/example/markers.txt
--- a/doc/en/example/markers.txt
+++ b/doc/en/example/markers.txt
@@ -280,6 +280,14 @@
 tests, whereas the "bar" mark is only applied to the second test.
 Skip and xfail marks can also be applied in this way, see :ref:`skip/xfail 
with parametrize`.
 
+.. note::
+
+    If the data you are parametrizing happen to be single callables, you need 
to be careful
+    when marking these items. `pytest.mark.xfail(my_func)` won't work because 
it's also the
+    signature of a function being decorated. To resolve this ambiguity, you 
need to pass a
+    reason argument:
+    `pytest.mark.xfail(func_bar, reason="Issue#7")`.
+
 
 .. _`adding a custom marker from a plugin`:

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to