Skip to content

Commit

Permalink
Allow pypy to have slightly less coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon24 committed Oct 28, 2021
1 parent 164381b commit 92eaac8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function coverage-report {
)" \
--skip-covered \
--show-missing \
--fail-under 100
--fail-under $( on-pypy && echo 99 || echo 100 )
}


Expand All @@ -79,9 +79,7 @@ function test-all {


function typing {
local implementation=$( python -c 'import sys; print(sys.implementation.name)' )

if [[ $implementation == pypy ]]; then
if on-pypy; then
# mypy does not work on pypy as of January 2020
# https://github.com/python/typed_ast/issues/97#issuecomment-484335190
echo "mypy does not work on pypy, doing nothing"
Expand Down Expand Up @@ -159,6 +157,11 @@ function ci-run {
}


function on-pypy {
[[ $( python -c 'import sys; print(sys.implementation.name)' ) == pypy ]]
}



# Commands end. Dispatch to command.

Expand Down

0 comments on commit 92eaac8

Please sign in to comment.