summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-05-23 15:36:56 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-05-23 15:36:56 +0200
commitf3758b7987ee1e2d7699b6226d05386a9b2d80fb (patch)
tree6f7145c305e6c1e030cfb37a85c57b7e623160a4
parentb1c8bb37534a9d28d9c33e75eadd0b5ecbf89617 (diff)
downloadpsutil-f3758b7987ee1e2d7699b6226d05386a9b2d80fb.tar.gz
remove placeholders for open_files
-rwxr-xr-xpsutil/tests/test_contracts.py1
-rwxr-xr-xpsutil/tests/test_memleaks.py1
-rwxr-xr-xpsutil/tests/test_process.py2
3 files changed, 0 insertions, 4 deletions
diff --git a/psutil/tests/test_contracts.py b/psutil/tests/test_contracts.py
index cc6b87e8..9bd56f35 100755
--- a/psutil/tests/test_contracts.py
+++ b/psutil/tests/test_contracts.py
@@ -569,7 +569,6 @@ class TestFetchAllProcesses(PsutilTestCase):
self.assertGreaterEqual(ret.pss, ret.uss)
def open_files(self, ret, info):
- return # XXX
self.assertIsInstance(ret, list)
for f in ret:
self.assertIsInstance(f.fd, int)
diff --git a/psutil/tests/test_memleaks.py b/psutil/tests/test_memleaks.py
index 51e8b552..cab91428 100755
--- a/psutil/tests/test_memleaks.py
+++ b/psutil/tests/test_memleaks.py
@@ -225,7 +225,6 @@ class TestProcessObjectLeaks(TestMemoryLeak):
@fewtimes_if_linux()
def test_open_files(self):
- return # XXX
with open(get_testfn(), 'w'):
self.execute(self.proc.open_files)
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index 94cb5abf..26ab218e 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -944,7 +944,6 @@ class TestProcess(PsutilTestCase):
# can't find any process file on Appveyor
@unittest.skipIf(APPVEYOR, "unreliable on APPVEYOR")
def test_open_files(self):
- return # XXX
p = psutil.Process()
testfn = self.get_testfn()
files = p.open_files()
@@ -983,7 +982,6 @@ class TestProcess(PsutilTestCase):
@unittest.skipIf(APPVEYOR, "unreliable on APPVEYOR")
def test_open_files_2(self):
# test fd and path fields
- return # XXX
p = psutil.Process()
normcase = os.path.normcase
testfn = self.get_testfn()