X-Git-Url: https://git.rkrishnan.org/?p=tahoe-lafs%2Ftahoe-lafs.git;a=blobdiff_plain;f=src%2Fallmydata%2Ftest%2Ftest_util.py;h=be5541e8852d79f8a3a5672652709af8851fa241;hp=25b656156ee1cec51752e0f29b5a0ef98c7d1eac;hb=c6449b687a6b2fc95ec9f6afd938a20f60a731ab;hpb=7a7faec76b97dd1c35aa69fb7178430eb619e404 diff --git a/src/allmydata/test/test_util.py b/src/allmydata/test/test_util.py index 25b65615..be5541e8 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()