Skip to content

Commit 2f13aee

Browse files
authored
PYTHON-3987 Fix coverage report handling (#1391)
1 parent 8762f01 commit 2f13aee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.evergreen/run-tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ python -c 'import sys; print(sys.version)'
258258
# Only cover CPython. PyPy reports suspiciously low coverage.
259259
PYTHON_IMPL=$($PYTHON -c "import platform; print(platform.python_implementation())")
260260
if [ -n "$COVERAGE" ] && [ "$PYTHON_IMPL" = "CPython" ]; then
261-
python -m pip install pytest-cov "coverage<7.3"
261+
python -m pip install pytest-cov "coverage"
262262
TEST_ARGS="$TEST_ARGS --cov pymongo --cov-branch --cov-report term-missing:skip-covered"
263263
fi
264264

@@ -292,3 +292,8 @@ if [ -n "$PERF_TEST" ]; then
292292

293293
cat report.json
294294
fi
295+
296+
# Handle coverage post actions.
297+
if [ -n "$COVERAGE" ]; then
298+
rm -rf .pytest_cache
299+
fi

0 commit comments

Comments
 (0)