Commit 69b62466 by Wenzel Jakob

add reason attribute to pytest.mark.skipif

parent 9a777a26
...@@ -151,14 +151,15 @@ def test_inheriting_repeat(): ...@@ -151,14 +151,15 @@ def test_inheriting_repeat():
assert obj.unlucky_number() == 1234 assert obj.unlucky_number() == 1234
assert obj.lucky_number() == -4.25 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(): def test_move_support():
from pybind11_tests import NCVirt, NonCopyable, Movable from pybind11_tests import NCVirt, NonCopyable, Movable
class NCVirtExt(NCVirt): class NCVirtExt(NCVirt):
def get_noncopyable(self, a, b): def get_noncopyable(self, a, b):
# Constructs and returns a new instance: # Constructs and returns a new instance:
nc = NonCopyable(a*a, b*b) nc = NonCopyable(a * a, b * b)
return nc return nc
def get_movable(self, a, b): def get_movable(self, a, b):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment