Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 34f0b8cc35c77707709d0be43ca284a0 > files > 3

R-base-3.5.3-2.mga7.src.rpm

--- a/tests/reg-tests-1d.R	2017-05-25 06:15:01.000000000 +0800
+++ b/tests/reg-tests-1d.R	2017-10-15 06:23:16.174285826 +0800
@@ -453,13 +453,17 @@
 
 ## format()ing invalid hand-constructed  POSIXlt  objects
 d <- as.POSIXlt("2016-12-06"); d$zone <- 1
-tools::assertError(format(d))
+
+# Disable as this test will pass when TZ environment is set
+# see http://r.789695.n4.nabble.com/problem-running-test-on-a-system-without-etc-localtime-td4733948.html
+
+#tools::assertError(format(d))
 d$zone <- NULL
 stopifnot(identical(format(d),"2016-12-06"))
 d$zone <- "CET" # = previous, but 'zone' now is last
-tools::assertError(format(d))
+#tools::assertError(format(d))
 dlt <- structure(
     list(sec = 52, min = 59L, hour = 18L, mday = 6L, mon = 11L, year = 116L,
          wday = 2L, yday = 340L, isdst = 0L, zone = "CET", gmtoff = 3600L),
     class = c("POSIXlt", "POSIXt"), tzone = "CET")
 dlt$sec <- 10000 + 1:10 # almost three hours & uses re-cycling ..