• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

giampaolo / psutil / 2136 / 2
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2017 05:47PM UTC
Files 4
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Oct 2017 05:40PM UTC coverage: 94.349% (-0.003%) from 94.352%
2136.2

push

travis-ci

giampaolo
Fix test asserts due to leftover test subprocesses (#1161)

* Reap test subprocess.

The leftover child process was triggering an assert in a later test:

======================================================================
FAIL: psutil.tests.test_connections.TestConnectedSocketPairs.test_combos
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ade/projects/psutil/psutil/tests/__init__.py", line 792, in wrapper
    return fun(*args, **kwargs)
  File "/home/ade/projects/psutil/psutil/tests/test_connections.py", line 330, in test_combos
    self.assertEqual(len(cons), 1)
AssertionError: 0 != 1

* Inherit from Base so that reap_children() cleans up the test processes.

Fixes memory leak test asserts.

psutil/tests/test_memory_leaks.py:334:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
psutil/tests/test_memory_leaks.py:125: in execute
    self.assertEqual(thisproc.children(), [])
E   AssertionError: Lists differ: [<psutil.Process(pid=908, name... != []
E
E   First list contains 10 additional elements.
E   First extra element 0:
E   <psutil.Process(pid=908, name='python2.7') at 34513317008>
E
E   + []
E   - [<psutil.Process(pid=908, name='python2.7') at 34513317008>,
E   -  <psutil.Process(pid=909, name='python2.7') at 34459063760>,
E   -  <psutil.Process(pid=910, name='python2.7') at 34459064464>,
E   -  <psutil.Process(pid=911, name='python2.7') at 34513749456>,
E   -  <psutil.Process(pid=912, name='python2.7') at 34513749520>,
E   -  <psutil.Process(pid=913, name='python2.7') at 34513751184>,
E   -  <psutil.Process(pid=914, name='python2.7') at 34513751120>,
E   -  <psutil.Process(pid=915, name='python2.7') at 34513751312>,
E   -  <psutil.Process(pid=916, name='python2.7') at 34513751376>,
E   -  <psutil.Process(pid=917, name='python2.7') at 34513748176>]

2037 of 2159 relevant lines covered (94.35%)

0.94 hits per line

Source Files on job 2136.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2136
  • Travis Job 2136.2
  • 5c51581f on github
  • Prev Job for on master (#2138.2)
  • Next Job for on master (#2140.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc