From 057fcb32e9f86b9e76d2651c7b5b5226fae26f6d Mon Sep 17 00:00:00 2001 From: Andrey Rahmatullin Date: Tue, 19 Dec 2023 22:29:04 +0400 Subject: [PATCH] Skip a test that requires 64-bit time_t if it breaks. --- tests/test_timezone_parser.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_timezone_parser.py b/tests/test_timezone_parser.py index c1aeb2b43..b8d2d0d46 100644 --- a/tests/test_timezone_parser.py +++ b/tests/test_timezone_parser.py @@ -1,5 +1,6 @@ import datetime as dt from datetime import datetime, timedelta +from unittest import SkipTest from unittest.mock import Mock, patch from parameterized import param, parameterized @@ -134,7 +135,10 @@ def setUp(self): ] ) def test_timezone_offset_calculation(self, utc, local, offset): - self.given_time(utc, local) + try: + self.given_time(utc, local) + except OverflowError: + raise SkipTest("Unsupported with 32-bit time_t") self.when_offset_popped_from_string() self.then_offset_is(offset)