From 1c4b8d0135ccb3e4f84051649e3a50d3e0737f6e Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Tue, 18 Feb 2014 17:48:43 -0800 Subject: [PATCH] Skip failing test if LIBCAPNP_VERSION < v0.5.0 --- test/test_struct.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_struct.py b/test/test_struct.py index f73e4f2..ce71f40 100644 --- a/test/test_struct.py +++ b/test/test_struct.py @@ -77,6 +77,7 @@ def test_which_reader(addressbook): addresses.which +@pytest.mark.skipif(capnp.version.LIBCAPNP_VERSION < 5000, reason="Using ints as enums requires v0.5.0+ of the C++ capnp library") def test_enum(addressbook): addresses = addressbook.AddressBook.new_message() people = addresses.init('people', 2)