You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where a test that runs a subprocess, making an assertion about what the
6
+
subprocess writes to stderr, can fail due to `CoverageWarning` messages
7
+
produced in the subprocess by `pytest-cov`.
8
+
9
+
## The failure
10
+
11
+
As there, it is specifically on Cygwin that this currently fails, since the
12
+
warning is not typically generated otherwise. The failure looks like:
13
+
14
+
```text
15
+
> assert proc.stderr == f"{sys.executable=}\n"
16
+
E assert "/home/ek/rep...bin/python'\n" == "sys.executab...bin/python'\n"
17
+
E
18
+
E + /home/ek/repos-cygwin/pytest-cov-test/.venv/lib/python3.9/site-packages/coverage/core.py:96: CoverageWarning: Couldn't import C tracer: No module named 'coverage.tracer' (no-ctracer)
19
+
E + warn(f"Couldn't import C tracer: {IMPORT_ERROR}", slug="no-ctracer", once=True)
20
+
E sys.executable='/home/ek/repos-cygwin/pytest-cov-test/.venv/bin/python'
0 commit comments