diff --git a/IPython/terminal/tests/test_embed.py b/IPython/terminal/tests/test_embed.py index 98dd946..ac4c942 100644 --- a/IPython/terminal/tests/test_embed.py +++ b/IPython/terminal/tests/test_embed.py @@ -14,7 +14,7 @@ import os import subprocess import sys -import nose.tools as nt + from IPython.utils.tempdir import NamedFileInTemporaryDirectory from IPython.testing.decorators import skip_win32 from IPython.testing import IPYTHON_TESTING_TIMEOUT_SCALE @@ -55,12 +55,13 @@ def test_ipython_embed(): out, err = p.communicate(_exit) std = out.decode('UTF-8') - nt.assert_equal(p.returncode, 0) - nt.assert_in('3 . 14', std) - if os.name != 'nt': + assert p.returncode == 0 + assert "3 . 14" in std + if os.name != "nt": # TODO: Fix up our different stdout references, see issue gh-14 - nt.assert_in('IPython', std) - nt.assert_in('bye!', std) + assert "IPython" in std + assert "bye!" in std + @skip_win32 def test_nest_embed():