From b7155f665a91c65365b7a82d5daeb9fdec9b0722 2021-10-23 12:01:15 From: Samuel Gaist Date: 2021-10-23 12:01:15 Subject: [PATCH] [utils][tests][dir2] Remove nose --- diff --git a/IPython/utils/tests/test_dir2.py b/IPython/utils/tests/test_dir2.py index bbebf60..20c601e 100644 --- a/IPython/utils/tests/test_dir2.py +++ b/IPython/utils/tests/test_dir2.py @@ -1,4 +1,3 @@ -import nose.tools as nt from IPython.utils.dir2 import dir2 @@ -9,12 +8,13 @@ class Base(object): def test_base(): res = dir2(Base()) - assert ('x' in res) - assert ('z' in res) - assert ('y' not in res) - assert ('__class__' in res) - nt.assert_equal(res.count('x'), 1) - nt.assert_equal(res.count('__class__'), 1) + assert "x" in res + assert "z" in res + assert "y" not in res + assert "__class__" in res + assert res.count("x") == 1 + assert res.count("__class__") == 1 + def test_SubClass(): @@ -22,9 +22,9 @@ def test_SubClass(): y = 2 res = dir2(SubClass()) - assert ('y' in res) - nt.assert_equal(res.count('y'), 1) - nt.assert_equal(res.count('x'), 1) + assert "y" in res + assert res.count("y") == 1 + assert res.count("x") == 1 def test_SubClass_with_trait_names_attr():