From ca5480e794b46554a55e4db2fd988841f635f1d2 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 1 Jul 2024 22:02:59 -0400 Subject: [PATCH] test: skip SAX external entities test in older libxml2 Before gnome/libxml2@eddfbc38 the `#characters` event was duplicated in this test case. I'm not going to work around it in Nokogiri. --- test/xml/sax/test_parser.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/xml/sax/test_parser.rb b/test/xml/sax/test_parser.rb index 4a26116a313..98640dea2ef 100644 --- a/test/xml/sax/test_parser.rb +++ b/test/xml/sax/test_parser.rb @@ -634,6 +634,8 @@ class TestCase end it "resolves local external entities when replace_entities is true" do + skip if Nokogiri.uses_libxml?("< 2.9.11") # gnome/libxml2@eddfbc38 + Tempfile.create do |io| io.write("local-contents") io.close