From 4dae683166af56e439619baada4d256fd16c2142 Mon Sep 17 00:00:00 2001 From: Jo Bovy Date: Thu, 5 Oct 2023 14:00:16 -0400 Subject: [PATCH] No longer necessary to ignore xdrlib deprecation with latest version of pynbody --- .github/workflows/build.yml | 3 +-- .github/workflows/build_windows.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ad01a412..58bd13695 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -292,9 +292,8 @@ jobs: pip install pytest-cov # Turn astropy deprecation warnings into errors as well if astropy if $REQUIRES_ASTROPY; then export PYTEST_ADDOPTS="-W error::astropy.utils.exceptions.AstropyDeprecationWarning"; else export PYTEST_ADDOPTS=""; fi - export XDRLIB_DEPRECATION="-W ignore:\"'xdrlib' is deprecated and slated for removal in Python 3.13\":DeprecationWarning" # eval necessary for -k 'not ...' in TEST_FILES - eval "pytest -W error::DeprecationWarning -W error::FutureWarning $PYTEST_ADDOPTS $XDRLIB_DEPRECATION -v $TEST_FILES --cov galpy --cov-config .coveragerc --disable-pytest-warnings --durations=0 --cov-report=term --cov-report=xml" + eval "pytest -W error::DeprecationWarning -W error::FutureWarning $PYTEST_ADDOPTS -v $TEST_FILES --cov galpy --cov-config .coveragerc --disable-pytest-warnings --durations=0 --cov-report=term --cov-report=xml" - name: Generate code coverage if: ${{ matrix.python-version == env.PYTHON_COVREPORTS_VERSION && matrix.os == 'ubuntu-latest' }} run: | diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index 6403fb516..42838a9b9 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -240,6 +240,5 @@ jobs: pip install pytest-cov # Turn astropy deprecation warnings into errors as well if astropy if $REQUIRES_ASTROPY; then export PYTEST_ADDOPTS="-W error::astropy.utils.exceptions.AstropyDeprecationWarning"; else export PYTEST_ADDOPTS=""; fi - export XDRLIB_DEPRECATION="-W ignore:\"'xdrlib' is deprecated and slated for removal in Python 3.13\":DeprecationWarning" # eval necessary for -k 'not ...' in TEST_FILES - eval "pytest -W error::DeprecationWarning -W error::FutureWarning $PYTEST_ADDOPTS $XDRLIB_DEPRECATION -v $TEST_FILES --cov galpy --cov-config .coveragerc --disable-pytest-warnings --durations=0" + eval "pytest -W error::DeprecationWarning -W error::FutureWarning $PYTEST_ADDOPTS -v $TEST_FILES --cov galpy --cov-config .coveragerc --disable-pytest-warnings --durations=0"