Skip to content

Failure in test-xml_write.R with libxml2 2.14 #466

@mfansler

Description

@mfansler

Just heads up that we're observing a test failure when linking against libxml2 2.14.6 during Conda Forge builds (R 4.4 and 4.5) on all platforms we test in. Our Windows builds do not fail when using the vendored 2.11.5 libxml2.

conda-forge/r-xml2-feedstock#41

> testthat::test_package('xml2')
This is libxml2 version 2.14.6 
[ FAIL 1 | WARN 0 | SKIP 21 | PASS 373 ]

══ Skipped tests (21) ══════════════════════════════════════════════════════════
• how to test error with `check_installed()`? (1): 'test-xml_parse.R:2:3'httpbin is unreliable (2): 'test-xml_parse.R:68:3', 'test-xml_parse.R:77:3'libxml2-dependent (1): 'test-xml_url.R:15:3'On CRAN (17): 'test-xml_attr.R:103:3', 'test-xml_children.R:14:3',
  'test-xml_document.R:4:3', 'test-xml_find.R:65:3', 'test-xml_find.R:91:3',
  'test-xml_find.R:109:3', 'test-xml_find.R:137:3', 'test-xml_name.R:32:3',
  'test-xml_node.R:4:3', 'test-xml_nodeset.R:79:3', 'test-xml_parse.R:12:3',
  'test-xml_parse.R:34:3', 'test-xml_parse.R:109:3',
  'test-xml_structure.R:35:3', 'test-xml_write.R:6:3', 'test-xml_write.R:78:3',
  'test-xml_write.R:96:3'

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-xml_write.R:127:3'): write_html work with html input ─────────
readChar(file, 1000L) (`actual`) not identical to "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"[http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><head>\n<meta](http://www.w3.org/TR/REC-html40/loose.dtd/%22%3E/n%3Chtml%3E%3Chead%3E/n%3Cmeta) http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<title>Foo</title>\n</head></html>\n" (`expected`).

lines(actual) vs lines(expected)
  "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"[http://www.w3.org/TR/REC-html40/loose.dtd\">"](http://www.w3.org/TR/REC-html40/loose.dtd/%22%3E%22)
  "<html><head>"
- "<meta charset=\"UTF-8\">"
+ "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"
  "<title>Foo</title>"
  "</head></html>"
  ""

[ FAIL 1 | WARN 0 | SKIP 21 | PASS 373 ]
Error: Test failures

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions