cocoindex 0.2.5__cp311-abi3-manylinux_2_28_aarch64.whl → 0.2.7__cp311-abi3-manylinux_2_28_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,38 +0,0 @@
1
- import pytest
2
- import typing
3
- import os
4
- import signal
5
- import sys
6
-
7
-
8
- @pytest.fixture(scope="session", autouse=True)
9
- def _cocoindex_windows_env_fixture(
10
- request: pytest.FixtureRequest,
11
- ) -> typing.Generator[None, None, None]:
12
- """Shutdown the subprocess pool at exit on Windows."""
13
-
14
- yield
15
-
16
- if not sys.platform.startswith("win"):
17
- return
18
-
19
- try:
20
- import cocoindex.subprocess_exec
21
-
22
- original_sigint_handler = signal.getsignal(signal.SIGINT)
23
- try:
24
- signal.signal(signal.SIGINT, signal.SIG_IGN)
25
- cocoindex.subprocess_exec.shutdown_pool_at_exit()
26
-
27
- # If any test failed, let pytest exit normally with nonzero code
28
- if request.session.testsfailed == 0:
29
- os._exit(0) # immediate success exit (skips atexit/teardown)
30
-
31
- finally:
32
- try:
33
- signal.signal(signal.SIGINT, original_sigint_handler)
34
- except ValueError: # noqa: BLE001
35
- pass
36
-
37
- except (ImportError, AttributeError): # noqa: BLE001
38
- pass