X-Git-Url: https://git.rkrishnan.org/?p=tahoe-lafs%2Ftahoe-lafs.git;a=blobdiff_plain;f=src%2Fallmydata%2Ftest%2Ftest_util.py;fp=src%2Fallmydata%2Ftest%2Ftest_util.py;h=e59e14aba6e92c4625896e24c6a20f015d38932e;hp=69d3c747dae7842fea8d59dd0f87b7a65e702ce8;hb=186f6d4a59a879ee93207a48bca15fbdf2741206;hpb=f03abe66cd7cd580c4056f48d602422a78c0d9cd diff --git a/src/allmydata/test/test_util.py b/src/allmydata/test/test_util.py index 69d3c747..e59e14ab 100644 --- a/src/allmydata/test/test_util.py +++ b/src/allmydata/test/test_util.py @@ -932,6 +932,10 @@ class TimeFormat(unittest.TestCase, TimezoneMixin): # time_format.iso_utc_time_to_localseconds() breaks if the timezone is # Europe/London. (As soon as this unit test is done then I'll change # that implementation to something that works even in this case...) + + if not self.have_working_tzset(): + raise unittest.SkipTest("This test can't be run on a platform without time.tzset().") + self.setTimezone("Europe/London") return self._help_test_epoch()