add reason attribute to pytest.mark.skipif

This commit is contained in:
Wenzel Jakob 2016-08-25 02:20:35 +02:00
parent 9a777a263d
commit 69b6246677

View File

@ -151,7 +151,8 @@ def test_inheriting_repeat():
assert obj.unlucky_number() == 1234
assert obj.lucky_number() == -4.25
@pytest.mark.skipif(not hasattr(pybind11_tests, 'NCVirt'))
@pytest.mark.skipif(not hasattr(pybind11_tests, 'NCVirt'),
reason="NCVirt test broken on ICPC")
def test_move_support():
from pybind11_tests import NCVirt, NonCopyable, Movable