summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-01-31 16:38:58 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-01-31 16:38:58 +0100
commitdb7a18a25facf8651844b84df946a7cf7997a346 (patch)
tree6da49a0b38fbc6feae7deeec0accd3480784b4a1
parent88e96ffaafb8422121cd98775a408cd13bdbd572 (diff)
downloadpsutil-db7a18a25facf8651844b84df946a7cf7997a346.tar.gz
fix test
-rwxr-xr-xpsutil/tests/test_system.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
index 753e5269..18a5ae2d 100755
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -111,7 +111,7 @@ class TestSystemAPIs(unittest.TestCase):
gone, alive = test(procs, callback)
self.assertIn(sproc3.pid, [x.pid for x in gone])
if POSIX:
- self.assertEqual(gone.pop().returncode, signal.SIGTERM)
+ self.assertEqual(gone.pop().returncode, -signal.SIGTERM)
else:
self.assertEqual(gone.pop().returncode, 1)
self.assertEqual(l, [sproc3.pid])