From f6d26c5acbef477cf4de3e76d504cc849e7194ff Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 10 Mar 2019 01:01:28 +0000 Subject: [PATCH] testlib: disable lsof warnings due to Docker crap --- tests/testlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testlib.py b/tests/testlib.py index 04a48d84..a0b02a39 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -332,7 +332,7 @@ class TestCase(unittest2.TestCase): def _teardown_check_fds(self): mitogen.core.Latch._on_fork() if get_fd_count() != self._fd_count_before: - import os; os.system('lsof -p %s' % (os.getpid(),)) + import os; os.system('lsof -w -p %s' % (os.getpid(),)) assert 0, "%s leaked FDs. Count before: %s, after: %s" % ( self, self._fd_count_before, get_fd_count(), )