Skip to content

Commit 0792ce7

Browse files
committed
chore: fix CI error coverage xml
1 parent 5752963 commit 0792ce7

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
mypy linux_edr/
3636
- name: Test with pytest
3737
run: |
38-
uv run pytest --cov=linux_edr --cov-report=xml --timeout=60 --color=no
38+
uv run pytest --cov=linux_edr
39+
uv run python -m coverage xml
3940
- name: Upload coverage to Codecov
4041
uses: codecov/codecov-action@v3
4142
with:

linux_edr/trace.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,8 @@ def close(self) -> None:
207207

208208
def __del__(self) -> None:
209209
"""Ensure resources are freed when object is garbage collected."""
210-
self.close()
210+
try:
211+
self.close()
212+
except Exception:
213+
# Suppress any exceptions during garbage collection
214+
pass

0 commit comments

Comments
 (0)