diff --git a/IPython/lib/tests/test_editorhooks.py b/IPython/lib/tests/test_editorhooks.py index 658276c..6e33547 100644 --- a/IPython/lib/tests/test_editorhooks.py +++ b/IPython/lib/tests/test_editorhooks.py @@ -2,8 +2,6 @@ import sys from unittest import mock -import nose.tools as nt - from IPython import get_ipython from IPython.lib import editorhooks @@ -20,15 +18,15 @@ def test_install_editor(): with mock.patch('subprocess.Popen', fake_popen): get_ipython().hooks.editor('the file', 64) - nt.assert_equal(len(called), 1) - args = called[0]['args'] - kwargs = called[0]['kwargs'] - - nt.assert_equal(kwargs, {'shell': True}) - - if sys.platform.startswith('win'): - expected = ['foo', '-l', '64', '-f', 'the file'] + assert len(called) == 1 + args = called[0]["args"] + kwargs = called[0]["kwargs"] + + assert kwargs == {"shell": True} + + if sys.platform.startswith("win"): + expected = ["foo", "-l", "64", "-f", "the file"] else: expected = "foo -l 64 -f 'the file'" cmd = args[0] - nt.assert_equal(cmd, expected) + assert cmd == expected