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

giampaolo / psutil / 2136
93%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2017 05:47PM UTC
Jobs 1
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

pending completion
2136

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

Jobs
ID Job ID Ran Files Coverage
2 2136.2 28 Oct 2017 05:47PM UTC 0
94.35
Travis Job 2136.2
Source Files on build 2136
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2136
  • 5c51581f on github
  • Prev Build on master (#2138)
  • Next Build on master (#2140)
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