summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-06-02 14:20:08 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-06-02 14:20:08 +0200
commit859c54c0f341b46d24b7ea43d7ab7c7c2d2980e6 (patch)
treef1cceff393bb2d2d95003e5cb2367d9c465749b7
parent65017b1a4e792b30dd8f16f999d6596fc295f66f (diff)
downloadpsutil-859c54c0f341b46d24b7ea43d7ab7c7c2d2980e6.tar.gz
disable test on windows
-rw-r--r--psutil/tests/__init__.py1
-rwxr-xr-xpsutil/tests/test_misc.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
index ff452e55..9eedb40c 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -334,6 +334,7 @@ def create_proc_children_pair():
def create_zombie_proc():
"""Create a zombie process and return its PID."""
+ assert psutil.POSIX
unix_file = tempfile.mktemp(prefix=TESTFILE_PREFIX) if OSX else TESTFN
src = textwrap.dedent("""\
import os, sys, time, socket, contextlib
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py
index c38dd9c4..85bab84c 100755
--- a/psutil/tests/test_misc.py
+++ b/psutil/tests/test_misc.py
@@ -945,6 +945,7 @@ class TestProcessUtils(unittest.TestCase):
assert not psutil.tests._pids_started
assert not psutil.tests._subprocesses_started
+ @unittest.skipIf(not POSIX, "POSIX only")
def test_create_zombie_proc(self):
zpid = create_zombie_proc()
self.addCleanup(reap_children, recursive=True)