The condition was accidentally reversed during refactoring in
9730ac4c5691c36d58c06deec1762a4831b268c5 . It would result in skipped
tests on builds with proper support and false negatives on builds
without proper feature support.
Credit for reporting the issue and the fix goes to Stanislav Levin.
have_libxml2 = pytest.mark.skipif(
- feature_test("--have-libxml2"), reason="libxml2 support disabled in the build"
+ not feature_test("--have-libxml2"), reason="libxml2 support disabled in the build"
)
have_json_c = pytest.mark.skipif(
- feature_test("--have-json-c"), reason="json-c support disabled in the build"
+ not feature_test("--have-json-c"), reason="json-c support disabled in the build"
)