From 4aeedd32b06a524f062c2d2bdb1f4ff5265b125b 2021-08-18 23:48:23 From: Matthias Bussonnier Date: 2021-08-18 23:48:23 Subject: [PATCH] == None to is None --- diff --git a/IPython/core/tests/test_formatters.py b/IPython/core/tests/test_formatters.py index efd6bf8..15ce8df 100644 --- a/IPython/core/tests/test_formatters.py +++ b/IPython/core/tests/test_formatters.py @@ -352,7 +352,7 @@ def test_print_method_weird(): with capture_output() as captured: result = f(call_hat) - assert result == None + assert result is None class BadReprArgs(object): def _repr_html_(self, extra, args): diff --git a/IPython/lib/tests/test_latextools.py b/IPython/lib/tests/test_latextools.py index 794688c..fafff73 100644 --- a/IPython/lib/tests/test_latextools.py +++ b/IPython/lib/tests/test_latextools.py @@ -25,7 +25,7 @@ def test_check_latex_to_png_dvipng_fails_when_no_cmd(command): raise FindCmdError with patch.object(latextools, "find_cmd", mock_find_cmd): - assert latextools.latex_to_png_dvipng("whatever", True) == None + assert latextools.latex_to_png_dvipng("whatever", True) is None @contextmanager