Skip to content

Commit

Permalink
Skip a test that requires 64-bit time_t if it breaks. (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR authored Dec 20, 2023
1 parent 5bddb9f commit b354669
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_timezone_parser.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit b354669

Please sign in to comment.