From bd60a316137f413234980b2f3044911d08b08e7c Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Fri, 23 Jun 2023 11:53:45 +0100 Subject: [PATCH] Re-enable raising deprecation warnings in default case and disable just for visual tests due to deprecation warnings in solara --- setup.cfg | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 3501b514..0d6dee92 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,7 +63,7 @@ glue_jupyter.icons = *.svg # -Wignore: See https://github.com/glue-viz/glue-jupyter/issues/237 # -s: Disable stdout capturing filterwarnings = - # error::DeprecationWarning + error::DeprecationWarning ignore:the imp module is deprecated:DeprecationWarning:glue.config.*: ignore:`np.float` is a deprecated alias:DeprecationWarning:glue.*: # possibly more serious issue with overlapping memory in glue/utils/array.py:30: unbroadcast diff --git a/tox.ini b/tox.ini index 59e5783e..e96b977d 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,7 @@ commands = test: pip freeze test-!visual: pytest --pyargs glue_jupyter --cov glue_jupyter {posargs} test-visual: playwright install chromium - test-visual: pytest --show-capture=no --pyargs glue_jupyter {posargs} --mpl -m mpl_image_compare --mpl --mpl-generate-summary=html --mpl-results-path={toxinidir}/results --mpl-hash-library={toxinidir}/glue_jupyter/tests/images/{envname}.json --mpl-baseline-path=https://raw.githubusercontent.com/glue-viz/glue-jupyter-visual-tests/main/images/{envname}/ + test-visual: pytest --show-capture=no --pyargs glue_jupyter {posargs} --mpl -m mpl_image_compare --mpl --mpl-generate-summary=html --mpl-results-path={toxinidir}/results --mpl-hash-library={toxinidir}/glue_jupyter/tests/images/{envname}.json --mpl-baseline-path=https://raw.githubusercontent.com/glue-viz/glue-jupyter-visual-tests/main/images/{envname}/ -W ignore:DeprecationWarning notebooks: python .validate-notebooks.py docs: sphinx-build -n -b html -d _build/doctrees . _build/html