Skip to content

Tests fail with libxml2 2.15 #468

@eddelbuettel

Description

@eddelbuettel

Debian noticed that the autopkg tests (a type of CI used for repo-wide reverse dependency checks) fail for package xml when libxml2 2.15 is used -- and this now blocks the passage of libxml2 to testing. This is in bug report 1119020 which mistakenly landed in my lap as the difference between CRAN packages XML (which I maintain) and xml2 (this one) was overlooked.

As for the bug, from the console log I can replicate in the rocker/r-base container with libxml2-dev from unstable, it appears one expectation needs an update:

* checking tests ...
  Running ‘testthat.R’
 ERROR
Running the tests in ‘tests/testthat.R’ failed.
Last 13 lines of output:
  ── 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-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\">"
    "<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
  Execution halted
* checking for unstated dependencies in vignettes ... OK

It would be lovely if this could be taken care of.

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