Skip to content

Commit

Permalink
Skip test on old versions of xml2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed May 19, 2016
1 parent 119455d commit 9b1367d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testthat/test-read-xml.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ test_that("parse_options errors when given an invalid option", {
})

test_that("read_html properly passes parser arguments", {

skip_if_not(libxml2_version() >= "2.9.2")

blanks <- read_html("cd_catalog.xml.bz2", options = c("RECOVER", "NOERROR"))
expect_equal(as_list(blanks)$body$catalog$cd[[1]],
"\r\n ")
Expand Down

0 comments on commit 9b1367d

Please sign in to comment.