Skip to content

Commit

Permalink
fix test on Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnon Yaari committed Sep 5, 2015
1 parent 5cba1ef commit d7df843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ def test_pids(self):
# Note: this test might fail if the OS is starting/killing
# other processes in the meantime
if SUNOS:
cmd = ["ps", "ax"]
cmd = ["ps", "-A", "-o", "pid"]
else:
cmd = ["ps", "ax", "-o", "pid"]
p = get_test_subprocess(cmd, stdout=subprocess.PIPE)
output = p.communicate()[0].strip()
assert p.poll() == 0
if PY3:
output = str(output, sys.stdout.encoding)
pids_ps = []
Expand Down

0 comments on commit d7df843

Please sign in to comment.