From a167c8b57ba7ac6460652a75015f5f82d751a75b 2021-10-23 12:01:15
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: 2021-10-23 12:01:15
Subject: [PATCH] [terminal][tests][embed] Remove nose

---

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():