Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4aeedd3

Browse files
committed
== None to is None
1 parent c202203 commit 4aeedd3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

IPython/core/tests/test_formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def __getattr__(self, key):
352352
with capture_output() as captured:
353353
result = f(call_hat)
354354

355-
assert result == None
355+
assert result is None
356356

357357
class BadReprArgs(object):
358358
def _repr_html_(self, extra, args):

IPython/lib/tests/test_latextools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def mock_find_cmd(arg):
2525
raise FindCmdError
2626

2727
with patch.object(latextools, "find_cmd", mock_find_cmd):
28-
assert latextools.latex_to_png_dvipng("whatever", True) == None
28+
assert latextools.latex_to_png_dvipng("whatever", True) is None
2929

3030

3131
@contextmanager

0 commit comments

Comments
 (0)