Skip to content

Commit c549740

Browse files
authored
PYTHON-2362 Use dnspython<2.0 to avoid timeouts (mongodb#484)
1 parent dc94ca6 commit c549740

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.evergreen/run-tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,12 @@ if [ -n "$COVERAGE" -a $PYTHON_IMPL = "CPython" ]; then
201201
fi
202202
fi
203203

204+
if $PYTHON -c 'import dns'; then
205+
# Trying with/without --user to avoid:
206+
# ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
207+
$PYTHON -m pip install --upgrade --user 'dnspython<2.0.0' || $PYTHON -m pip install --upgrade 'dnspython<2.0.0'
208+
fi
209+
204210
$PYTHON setup.py clean
205211
if [ -z "$GREEN_FRAMEWORK" ]; then
206212
if [ -z "$C_EXTENSIONS" -a $PYTHON_IMPL = "CPython" ]; then

0 commit comments

Comments
 (0)