@@ -31,9 +31,6 @@ set -o xtrace
31
31
AUTH=${AUTH:- noauth}
32
32
SSL=${SSL:- nossl}
33
33
TEST_ARGS=" ${*: 1} "
34
- PYTHON=$( which python)
35
- # TODO: Remove when we drop PyPy 3.8 support.
36
- OLD_PYPY=$( python -c " import sys; print(sys.implementation.name.lower() == 'pypy' and sys.implementation.version < (7, 3, 12))" )
37
34
38
35
export PIP_QUIET=1 # Quiet by default
39
36
export PIP_PREFER_BINARY=1 # Prefer binary dists by default
113
110
114
111
if [ " $COMPRESSORS " = " snappy" ]; then
115
112
python -m pip install ' .[snappy]'
116
- if [ " $OLD_PYPY " == " True" ]; then
117
- pip install " python-snappy<0.7.0"
118
- fi
119
- PYTHON=python
120
113
elif [ " $COMPRESSORS " = " zstd" ]; then
121
114
python -m pip install zstandard
122
115
fi
@@ -237,7 +230,7 @@ if [ -n "$PERF_TEST" ]; then
237
230
TEST_ARGS=" test/performance/perf_test.py"
238
231
fi
239
232
240
- echo " Running $AUTH tests over $SSL with python $PYTHON "
233
+ echo " Running $AUTH tests over $SSL with python $( which python ) "
241
234
python -c ' import sys; print(sys.version)'
242
235
243
236
@@ -246,7 +239,7 @@ python -c 'import sys; print(sys.version)'
246
239
247
240
# Run the tests with coverage if requested and coverage is installed.
248
241
# Only cover CPython. PyPy reports suspiciously low coverage.
249
- PYTHON_IMPL=$( $PYTHON -c " import platform; print(platform.python_implementation())" )
242
+ PYTHON_IMPL=$( python -c " import platform; print(platform.python_implementation())" )
250
243
if [ -n " $COVERAGE " ] && [ " $PYTHON_IMPL " = " CPython" ]; then
251
244
# Keep in sync with combine-coverage.sh.
252
245
# coverage >=5 is needed for relative_files=true.
0 commit comments