We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0792ce7 commit 8cb9d08Copy full SHA for 8cb9d08
2 files changed
.github/workflows/test.yml
@@ -35,8 +35,7 @@ jobs:
35
mypy linux_edr/
36
- name: Test with pytest
37
run: |
38
- uv run pytest --cov=linux_edr
39
- uv run python -m coverage xml
+ uv run pytest --cov=linux_edr -p no:logging --disable-pytest-warnings --cov-report=xml
40
- name: Upload coverage to Codecov
41
uses: codecov/codecov-action@v3
42
with:
conftest.py
@@ -0,0 +1,13 @@
1
+from _pytest._io.terminalwriter import TerminalWriter
2
+
3
+_orig_flush = TerminalWriter.flush
4
5
+def _safe_flush(self, *args, **kwargs):
6
+ try:
7
+ return _orig_flush(self, *args, **kwargs)
8
+ except OSError as e:
9
+ if e.errno == 9: # Bad file descriptor
10
+ return
11
+ raise
12
13
+TerminalWriter.flush = _safe_flush
0 commit comments