Skip to content

Commit

Permalink
tz warning only present on R 4.3 and R devel.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Oct 3, 2023
1 parent c22d1bb commit 300cf88
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/testthat/helper.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
expect_tz_warning <- function(object) {
# FIXME when the tzone warning is fixed, delete this function,
# use Replace all expect_tz_warning -> expect_no_warning
# This is for R >= 4.3.0
# Issue #156
expect_warning(object, regexp = "tzone")
if (getRversion() >= "4.3.0") {
expect_warning(object, regexp = "tzone")
} else {
expect_no_warning(object)
}
}

0 comments on commit 300cf88

Please sign in to comment.