File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -420,11 +420,3 @@ markers = [
420420 " xpu" , # mark tests which require Intel dGPU,
421421]
422422python_files = " tests/**/*.py"
423- timeout = 300
424- timeout_method = " thread"
425- # Prevent forking issues in CI
426- addopts = " --tb=short --strict-markers"
427- # Force fork start method for multiprocessing to avoid deadlocks
428- env = [
429- " PYTHONDONTWRITEBYTECODE=1" ,
430- ]
Original file line number Diff line number Diff line change 22# SPDX-License-Identifier: Apache-2.0
33from __future__ import annotations
44
5- import multiprocessing
65import os
76from collections import defaultdict
87from pathlib import Path
2423from tests .utils import ExportCase2Test
2524
2625
27- # Configure multiprocessing to use 'spawn' to avoid deadlocks in CI
2826def pytest_configure (config ):
2927 """Configure pytest to prevent hanging in CI environments."""
30- try : # noqa: SIM105
31- # Set multiprocessing start method to 'spawn' to avoid fork issues
32- multiprocessing .set_start_method ("spawn" , force = True )
33- except RuntimeError :
34- # Already set, ignore
35- pass
3628
3729 # Limit thread usage to prevent resource contention
3830 os .environ .setdefault ("OMP_NUM_THREADS" , "1" )
You can’t perform that action at this time.
0 commit comments