diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py index 01ebe1416..312f17d9a 100755 --- a/psutil/tests/test_contracts.py +++ b/psutil/tests/test_contracts.py @@ -14,7 +14,6 @@ import stat import time import traceback -import warnings from psutil import AIX from psutil import BSD @@ -179,22 +178,6 @@ def test_memory_maps(self): hasit, False if OPENBSD or NETBSD or AIX or MACOS else True) -# =================================================================== -# --- Test deprecations -# =================================================================== - - -class TestDeprecations(unittest.TestCase): - - def test_memory_info_ex(self): - with warnings.catch_warnings(record=True) as ws: - psutil.Process().memory_info_ex() - w = ws[0] - self.assertIsInstance(w.category(), DeprecationWarning) - self.assertIn("memory_info_ex() is deprecated", str(w.message)) - self.assertIn("use memory_info() instead", str(w.message)) - - # =================================================================== # --- System API types # ===================================================================