diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-04 10:32:46 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-11-04 10:32:46 +0100 |
commit | 02d1d199e6a439d423165320b88a5955561ddc76 (patch) | |
tree | 9551466b6867ce0b25cd3ea07a6e1c86f0907617 | |
parent | 657d028799ee071be2c2ad50e2526f53e0dfdc9f (diff) | |
download | psutil-02d1d199e6a439d423165320b88a5955561ddc76.tar.gz |
reap_children() in a finally block in order to limit false positives
-rwxr-xr-x | psutil/tests/test_unicode.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/tests/test_unicode.py b/psutil/tests/test_unicode.py index 94ebd163..3aaca436 100755 --- a/psutil/tests/test_unicode.py +++ b/psutil/tests/test_unicode.py @@ -125,8 +125,9 @@ def subprocess_supports_unicode(name): except UnicodeEncodeError: return False else: - reap_children() return True + finally: + reap_children() # An invalid unicode string. |