From ede074a44cce1a83d64d532694bd288c4998237b Mon Sep 17 00:00:00 2001 From: utensil Date: Thu, 28 Mar 2024 16:40:57 +0800 Subject: [PATCH] Work around warnings in stderr --- examples/ipython/conftest.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 examples/ipython/conftest.py diff --git a/examples/ipython/conftest.py b/examples/ipython/conftest.py new file mode 100644 index 00000000..e8b4d012 --- /dev/null +++ b/examples/ipython/conftest.py @@ -0,0 +1,4 @@ +# https://nbval.readthedocs.io/en/latest/#Skipping-certain-output-types +def pytest_collectstart(collector): + if collector.fspath and collector.fspath.ext == '.ipynb': + collector.skip_compare += 'text/html', 'application/javascript', 'stderr', \ No newline at end of file