[Python-modules-commits] [python-setproctitle] 02/13: ps might give warnings, let's remove those.
Orestis Ioannou
oorestisime-guest at moszumanska.debian.org
Sun Sep 18 12:02:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
oorestisime-guest pushed a commit to branch master
in repository python-setproctitle.
commit 32ec81521796e63bfaf473cf6f894ba8eb9baed4
Author: Örjan Persson <orange at fobie.net>
Date: Wed Sep 14 00:42:50 2016 +0200
ps might give warnings, let's remove those.
http://bugs.debian.org/460331
Last-Update: 2010-05-28
---
tests/setproctitle_test.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/setproctitle_test.py b/tests/setproctitle_test.py
index 3a5edbb..829f3e0 100644
--- a/tests/setproctitle_test.py
+++ b/tests/setproctitle_test.py
@@ -38,9 +38,10 @@ class GetProcTitleTestCase(unittest.TestCase):
import os
print os.getpid()
- print os.popen("ps -o pid,command").read()
+ print os.popen("ps -o pid,command 2> /dev/null").read()
""")
lines = filter(None, rv.splitlines())
+ print 'ps output:', lines
pid = lines.pop(0)
pids = dict([r.strip().split(None, 1) for r in lines])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-setproctitle.git
More information about the Python-modules-commits
mailing list