summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpsutil/tests/test_contracts.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
index 01ebe141..312f17d9 100755
--- a/psutil/tests/test_contracts.py
+++ b/psutil/tests/test_contracts.py
@@ -14,7 +14,6 @@ import os
import stat
import time
import traceback
-import warnings
from psutil import AIX
from psutil import BSD
@@ -180,22 +179,6 @@ class TestAvailProcessAPIs(unittest.TestCase):
# ===================================================================
-# --- 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
# ===================================================================