We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--branch
1 parent 0dcbe6a commit 2c98fe3Copy full SHA for 2c98fe3
scripts/test
@@ -11,7 +11,10 @@ if [ -z $GITHUB_ACTIONS ]; then
11
scripts/check
12
fi
13
14
-${PREFIX}coverage run -m pytest $@
+# TODO: Remove this custom logic, and add `branch = true` to the `[coverage.run]` when we drop support for Python 3.9.
15
+# See https://github.com/encode/starlette/issues/2452.
16
+branch_option=$(python -c 'import sys; print("--branch" if sys.version_info >= (3, 10) else "")')
17
+${PREFIX}coverage run $branch_option -m pytest $@
18
19
if [ -z $GITHUB_ACTIONS ]; then
20
scripts/coverage
0 commit comments