diff --git a/test/xml/test_entity_reference.rb b/test/xml/test_entity_reference.rb
index 04e2490..b28fb7e 100644
--- a/test/xml/test_entity_reference.rb
+++ b/test/xml/test_entity_reference.rb
@@ -236,14 +236,7 @@ EOF
reader = Nokogiri::XML::Reader html, path do |cfg|
cfg.default_xml
end
- if Nokogiri.uses_libxml? && Nokogiri::LIBXML_PARSER_VERSION.to_i >= 20900
- # Unknown entity is not fatal in libxml2 >= 2.9
- assert_equal 8, reader.count
- else
- assert_raises(Nokogiri::XML::SyntaxError) {
- assert_equal 5, reader.count
- }
- end
+ assert_equal 8, reader.count
assert_operator reader.errors.size, :>, 0
--
2.7.4