changeset bd27e5159a38 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=bd27e5159a38
description:
Skip test of scheduling cron on DST with dateutil
dateutil does not compute the ambiguity of wall time correctly.
issue11758
review418251003
diffstat:
trytond/tests/test_ir.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 07da0eddd9cb -r bd27e5159a38 trytond/tests/test_ir.py
--- a/trytond/tests/test_ir.py Mon Oct 03 09:31:34 2022 +0200
+++ b/trytond/tests/test_ir.py Mon Oct 03 16:53:11 2022 +0200
@@ -5,6 +5,11 @@
from decimal import Decimal
from unittest.mock import ANY, Mock, patch
+try:
+ import zoneinfo
+except ImportError:
+ zoneinfo = None
+
from dateutil.relativedelta import relativedelta
from trytond.config import config
@@ -429,6 +434,7 @@
cron.compute_next_call(datetime.datetime(2021, 12, 31, 5, 0)),
datetime.datetime(2022, 1, 1, 6, 0))
+ @unittest.skipIf(not zoneinfo, "dateutil does not compute correctly")
@with_transaction()
def test_scheduling_on_dst_change(self):
"Test scheduling while the DST change occurs"