Skip to content

Commit 86b33f3

Browse files
committed
Tests: use datetime.timezone.utc instead of datetime.UTC.
`datetime.UTC` was only introduced in Python 3.11, so the CIs were failing on setups with Python 3.10.
1 parent 1356ae5 commit 86b33f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/trio/_tests/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def client() -> None:
567567

568568
# An expired client certificate: this should fail
569569
client_cert = TRIO_TEST_CA.issue_cert(
570-
"user@example.org", not_after=datetime.datetime.now(datetime.UTC)
570+
"user@example.org", not_after=datetime.datetime.now(datetime.timezone.utc)
571571
)
572572
client_cert.configure_cert(client_ctx)
573573

0 commit comments

Comments
 (0)