|
34 | 34 | # ppc64le and s390x have limitations with some supported libraries.
|
35 | 35 | machine, py_version = get_runtime_env_info()
|
36 | 36 | if machine in ["ppc64le", "s390x"]:
|
37 |
| - collect_ignore_glob.extend([ |
38 |
| - "*test_google-cloud*", |
39 |
| - "*test_pymongo*", |
40 |
| - ]) |
| 37 | + collect_ignore_glob.extend( |
| 38 | + [ |
| 39 | + "*test_google-cloud*", |
| 40 | + "*test_pymongo*", |
| 41 | + ] |
| 42 | + ) |
41 | 43 |
|
42 | 44 | if machine == "ppc64le":
|
43 | 45 | collect_ignore_glob.append("*test_grpcio*")
|
|
51 | 53 | collect_ignore_glob.append("*test_couchbase*")
|
52 | 54 |
|
53 | 55 | if not os.environ.get("GEVENT_STARLETTE_TEST"):
|
54 |
| - collect_ignore_glob.extend([ |
55 |
| - "*test_gevent*", |
56 |
| - "*test_starlette*", |
57 |
| - ]) |
| 56 | + collect_ignore_glob.extend( |
| 57 | + [ |
| 58 | + "*test_gevent*", |
| 59 | + "*test_starlette*", |
| 60 | + ] |
| 61 | + ) |
58 | 62 |
|
59 | 63 | if not os.environ.get("KAFKA_TEST"):
|
60 | 64 | collect_ignore_glob.append("*kafka/test*")
|
61 | 65 |
|
| 66 | +# Currently asyncio and tornado_server depends on aiohttp and |
| 67 | +# since aiohttp versions < 3.12.14 have vulnerability we skip the tests below |
| 68 | +if sys.version_info < (3, 9): |
| 69 | + collect_ignore_glob.extend( |
| 70 | + [ |
| 71 | + "*test_aiohttp*", |
| 72 | + "*test_asyncio*", |
| 73 | + "*test_tornado_server*", |
| 74 | + ] |
| 75 | + ) |
| 76 | + |
62 | 77 | if sys.version_info >= (3, 12):
|
63 | 78 | # Currently Spyne does not support python > 3.12
|
64 | 79 | collect_ignore_glob.append("*test_spyne*")
|
65 | 80 |
|
66 | 81 |
|
67 | 82 | if sys.version_info >= (3, 14):
|
68 |
| - collect_ignore_glob.extend([ |
69 |
| - # Currently not installable dependencies because of 3.14 incompatibilities |
70 |
| - "*test_fastapi*", |
71 |
| - # aiohttp-server tests failing due to deprecated methods used |
72 |
| - "*test_aiohttp_server*", |
73 |
| - # Currently Sanic does not support python >= 3.14 |
74 |
| - "*test_sanic*", |
75 |
| - ]) |
| 83 | + collect_ignore_glob.extend( |
| 84 | + [ |
| 85 | + # Currently not installable dependencies because of 3.14 incompatibilities |
| 86 | + "*test_fastapi*", |
| 87 | + # aiohttp-server tests failing due to deprecated methods used |
| 88 | + "*test_aiohttp_server*", |
| 89 | + # Currently Sanic does not support python >= 3.14 |
| 90 | + "*test_sanic*", |
| 91 | + ] |
| 92 | + ) |
| 93 | + |
76 | 94 |
|
77 | 95 | @pytest.fixture(scope="session")
|
78 | 96 | def celery_config():
|
@@ -253,10 +271,12 @@ def announce(monkeypatch, request) -> None:
|
253 | 271 | else:
|
254 | 272 | monkeypatch.setattr(HostAgent, "announce", always_true)
|
255 | 273 |
|
| 274 | + |
256 | 275 | # Mocking the import of uwsgi
|
257 | 276 | def _uwsgi_masterpid() -> int:
|
258 | 277 | return 12345
|
259 | 278 |
|
| 279 | + |
260 | 280 | module = type(sys)("uwsgi")
|
261 | 281 | module.opt = {
|
262 | 282 | "master": True,
|
|
0 commit comments