Skip to content

Commit

Permalink
remove deprecation test: it fails intermittently because warnings use…
Browse files Browse the repository at this point in the history
…s a global state
  • Loading branch information
giampaolo committed Feb 16, 2020
1 parent 766541f commit 776016f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions psutil/tests/test_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import stat
import time
import traceback
import warnings

from psutil import AIX
from psutil import BSD
Expand Down Expand Up @@ -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
# ===================================================================
Expand Down

0 comments on commit 776016f

Please sign in to comment.