diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-06-02 14:20:08 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-06-02 14:20:08 +0200 |
commit | 859c54c0f341b46d24b7ea43d7ab7c7c2d2980e6 (patch) | |
tree | f1cceff393bb2d2d95003e5cb2367d9c465749b7 | |
parent | 65017b1a4e792b30dd8f16f999d6596fc295f66f (diff) | |
download | psutil-859c54c0f341b46d24b7ea43d7ab7c7c2d2980e6.tar.gz |
disable test on windows
-rw-r--r-- | psutil/tests/__init__.py | 1 | ||||
-rwxr-xr-x | psutil/tests/test_misc.py | 1 |
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) |