From 69b6246677e43b8e2c2ee6be6970d2b5dbb156c6 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Thu, 25 Aug 2016 02:20:35 +0200 Subject: [PATCH] add reason attribute to pytest.mark.skipif --- tests/test_virtual_functions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_virtual_functions.py b/tests/test_virtual_functions.py index 4d247502d..d65adc6ba 100644 --- a/tests/test_virtual_functions.py +++ b/tests/test_virtual_functions.py @@ -151,14 +151,15 @@ 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 class NCVirtExt(NCVirt): def get_noncopyable(self, a, b): # Constructs and returns a new instance: - nc = NonCopyable(a*a, b*b) + nc = NonCopyable(a * a, b * b) return nc def get_movable(self, a, b):