-
Notifications
You must be signed in to change notification settings - Fork 51
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
Test failure with matplotlib 3.4: to_png deprecated #167
Comments
The deprecation warning is removed by ipython/ipython#12889, but nbval probably should not trip by that with an older ipython. |
Hacky workaround: Index: nbval-0.9.6/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb
===================================================================
--- nbval-0.9.6.orig/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb
+++ nbval-0.9.6/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb
@@ -37,6 +37,9 @@
}
],
"source": [
+ "import warnings\n",
+ "from matplotlib import MatplotlibDeprecationWarning\n",
+ "warnings.filterwarnings(\"ignore\", category=MatplotlibDeprecationWarning)\n",
"x**2 + y**3"
]
}
Index: nbval-0.9.6/tests/latex-example.ipynb
===================================================================
--- nbval-0.9.6.orig/tests/latex-example.ipynb
+++ nbval-0.9.6/tests/latex-example.ipynb
@@ -15,6 +15,13 @@
},
"outputs": [],
"source": [
+ "try:\n",
+ " import warnings\n",
+ " from matplotlib import MatplotlibDeprecationWarning\n",
+ " warnings.filterwarnings(\"ignore\", category=MatplotlibDeprecationWarning)\n",
+ "except ImportError:\n",
+ " # no matplotlib, no problem\n",
+ " pass\n",
"import sympy\n",
"sympy.init_printing()\n",
"x, y = sympy.symbols([\"x\", \"y\"])" |
9 tasks
archlinux-github
pushed a commit
to archlinux/svntogit-community
that referenced
this issue
Aug 7, 2021
…cy and fix check() What a mess in tests LOL! Related tickets: [1] computationalmodelling/nbval#162 [2] computationalmodelling/nbval#167 [3] ipython/ipython#12817 [4] ipython/ipython#12889 [5] ipython/ipykernel#591 [6] matplotlib/matplotlib#20046 git-svn-id: file:///srv/repos/svn-community/svn@994636 9fca08f4-af9d-4005-b8df-a31f2cc04f65
archlinux-github
pushed a commit
to archlinux/svntogit-community
that referenced
this issue
Aug 7, 2021
…cy and fix check() What a mess in tests LOL! Related tickets: [1] computationalmodelling/nbval#162 [2] computationalmodelling/nbval#167 [3] ipython/ipython#12817 [4] ipython/ipython#12889 [5] ipython/ipykernel#591 [6] matplotlib/matplotlib#20046 git-svn-id: file:///srv/repos/svn-community/svn@994636 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to #155, a new warning message of matplotlib results in a test failure:
Testing
test-latex-pass-correctouput.ipynb
directky yields this:The text was updated successfully, but these errors were encountered: