Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip a test that requires 64-bit time_t if it breaks. #1205

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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