summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-02-16 15:34:18 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-02-16 15:34:18 +0100
commit776016fc8aaeb749762122a0866be3517a6e7a7f (patch)
treedf80eaa95fc122e982b5ba4f29628fa48bda029a
parent766541fe9501373eea1ea2e77b865be9ed572cc7 (diff)
downloadpsutil-776016fc8aaeb749762122a0866be3517a6e7a7f.tar.gz
remove deprecation test: it fails intermittently because warnings uses a global state
-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
# ===================================================================