8000 fix: update dependencies (#122) · frostming/unearth@136b4d4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 136b4d4

Browse files
authored
fix: update dependencies (#122)
1 parent da746ed commit 136b4d4

File tree

3 files changed

+55
-38
lines changed

3 files changed

+55
-38
lines changed

pdm.lock

+48-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test = [
5757
"pytest-httpserver>=1.0.4",
5858
"flask>=2.1.2",
5959
"requests-wsgi-adapter>=0.4.1",
60-
"trustme>=0.9.0",
60+
"trustme>=0.9.0; python_version < \"3.13\"",
6161
"pytest-mock>=3.12.0",
6262
]
6363
doc = [

tests/conftest.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from __future__ import annotations
44

55
import os
6+
import sys
67
from ssl import SSLContext
78
from typing import TYPE_CHECKING
89

910
import flask
1011
import pytest
11-
import trustme
1212
from httpx import WSGITransport
1313
from wsgiadapter import WSGIAdapter as _WSGIAdapter
1414

@@ -33,12 +33,16 @@ class InsecureWSGIAdapter(InsecureMixin, WSGIAdapter):
3333

3434
@pytest.fixture(scope="session")
3535
def custom_certificate_authority():
36+
if sys.version_info >= (3, 13):
37+
pytest.skip("trustme is not compatible with Python 3.13")
38+
import trustme
39+
3640
return trustme.CA()
3741

3842

3943
@pytest.fixture(scope="session")
4044
def self_signed_server_cert(httpserver_listen_address, custom_certificate_authority):
41-
server, port = httpserver_listen_address
45+
server, _ = httpserver_listen_address
4246
return custom_certificate_authority.issue_cert(server)
4347

4448

0 commit comments

Comments
 (0)
0