Skip to content

Commit

Permalink
try to workaround it
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Feb 27, 2024
1 parent 5b10eee commit b225cb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_erddapy.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Test ERDDAP functionality."""

import datetime
import sys

import httpx
import packaging.version
import pytest
import pytz

Expand All @@ -17,6 +19,13 @@
)
from erddapy.erddapy import ERDDAP

if packaging.version.parse(
f"{sys.version_info.major}.{sys.version_info.minor}",
) < packaging.version.parse(
"3.11",
):
datetime.UTC = datetime.timezone.utc


def test_parse_dates_naive_datetime():
"""Naive timestamp at 1970-1-1 must be 0."""
Expand Down

0 comments on commit b225cb9

Please sign in to comment.