Skip to content

Commit

Permalink
in test, use an ISO format that Python <3.11 will accept
Browse files Browse the repository at this point in the history
  • Loading branch information
npt committed Oct 1, 2024
1 parent bf2b5c4 commit d0a4eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_units/test_auth/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ def test_get_expires_at():
def test_is_expired():
# correctness not tested, but none of these should raise an exception
_is_expired("2024-10-01T14:26:21")
_is_expired("2024-10-01T14:26:21Z")
_is_expired("2024-10-01T14:26:21+00:00")
_is_expired(datetime.datetime.now())
_is_expired(datetime.datetime.now(datetime.timezone.utc))

0 comments on commit d0a4eb2

Please sign in to comment.