Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINT] various test updates #1334

Merged
merged 3 commits into from Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 3 additions & 10 deletions continuous_integration/install.sh
Expand Up @@ -12,9 +12,7 @@ set -e

create_new_conda_env() {
conda update --yes conda
# TODO: unpin pytest once it no longer causes test errors because of
# PytestRemovedIn8Warning warnings
TO_INSTALL="python=$PYTHON_VERSION pip pytest<7.0 $EXTRA_CONDA_PACKAGES"
TO_INSTALL="python=$PYTHON_VERSION pip pytest $EXTRA_CONDA_PACKAGES"
conda create -n testenv --yes -c conda-forge $TO_INSTALL
source activate testenv
}
Expand All @@ -25,9 +23,7 @@ create_new_pypy3_env() {
tar xvf $PYPY_FOLDER.tar.bz2
$PYPY_FOLDER/bin/pypy3 -m venv pypy3
source pypy3/bin/activate
# TODO: unpin pytest once it no longer causes test errors because of
# PytestRemovedIn8Warning warnings
pip install -U pip 'pytest<7.0'
pip install -U pip 'pytest'
}

if [[ "$PYTHON_VERSION" == "pypy3" ]]; then
Expand All @@ -51,10 +47,7 @@ if [ -n "$NUMPY_VERSION" ]; then
fi

if [[ "$COVERAGE" == "true" ]]; then
# TODO: unpin when https://github.com/nedbat/coveragepy/issues/883 is fixed
# Weird issues with recent version of coverage: unpin when not causing
# pytest to raise INTERNALERROR exceptions.
PIP_INSTALL_PACKAGES="$PIP_INSTALL_PACKAGES coverage==4.5.4 pytest-cov codecov"
PIP_INSTALL_PACKAGES="$PIP_INSTALL_PACKAGES coverage pytest-cov codecov"
fi

if [[ "pypy3" != *"$PYTHON_VERSION"* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion joblib/test/test_memmapping.py
Expand Up @@ -839,7 +839,7 @@ def get_temp_folder(parallel_obj, backend):
# the temporary folder should be deleted by the end of this
# call but apparently on some file systems, this takes
# some time to be visible.
for i in range(10):
for i in range(100):
if not os.path.exists(temp_folder):
break
sleep(.1)
Expand Down