From aa71385ef8f6a85e8b05c0f9f01db1dc907ee829 Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Mon, 14 May 2012 18:36:39 +0200 Subject: [PATCH] TestOpenOrder: fix random unexpected success of testPeriodicityDateList --- product/ERP5/tests/testOpenOrder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testOpenOrder.py b/product/ERP5/tests/testOpenOrder.py index 7f3415af4b..704de74574 100644 --- a/product/ERP5/tests/testOpenOrder.py +++ b/product/ERP5/tests/testOpenOrder.py @@ -25,8 +25,9 @@ # ############################################################################## import unittest +from time import tzname from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase -from Products.ERP5Type.tests.backportUnittest import expectedFailure +from Products.ERP5Type.tests.backportUnittest import expectedFailure, skip from DateTime import DateTime @@ -231,7 +232,8 @@ class TestOpenOrder(ERP5TypeTestCase): (D(2008,3,3,10,0), D(2008,3,4,10,0)), ]) - testPeriodicityDateList = expectedFailure(_testPeriodicityDateList) + testPeriodicityDateList = (skip("can't run if machine timezone is UTC") + if "UTC" in tzname else expectedFailure)(_testPeriodicityDateList) def testPeriodicityDateListUniversal(self): self._testPeriodicityDateList('Universal') -- 2.30.9