Skip to content

Commit 5982ec7

Browse files
committed
Drop the keyed from_file test - pendulum never calls it with a key
1 parent f6ad737 commit 5982ec7

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

‎tests/tz/test_timezone.py‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -503,17 +503,3 @@ def test_from_file_without_a_key_can_be_pickled():
503503
assert dt.utcoffset() == timedelta(hours=2) # CEST, matches Europe/Paris in July
504504
dt = datetime(2024, 1, 1, 12, tzinfo=unpickled)
505505
assert dt.utcoffset() == timedelta(hours=1) # CET, matches Europe/Paris in January
506-
507-
508-
def test_from_file_with_a_key_still_pickles_by_key():
509-
from io import BytesIO
510-
511-
import pendulum.tz.timezone as timezone_module
512-
513-
tz = timezone_module.Timezone.from_file(
514-
BytesIO(_paris_tzif_bytes()), key="Europe/Paris"
515-
)
516-
517-
unpickled = pickle.loads(pickle.dumps(tz))
518-
519-
assert unpickled.key == "Europe/Paris"

0 commit comments

Comments
 (0)