Skip to content

Commit 3152042

Browse files
committed
tests: Don't suppress output while testing unix Listener
It's not noisy, and it has been hiding an error I wasn't aware of.
1 parent a3192d2 commit 3152042

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

tests/unix_test.py

+7-11
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,13 @@ class ListenerTest(testlib.RouterMixin, testlib.TestCase):
6565

6666
def test_constructor_basic(self):
6767
listener = self.klass.build_stream(router=self.router)
68-
capture = testlib.LogCapturer()
69-
capture.start()
70-
try:
71-
self.assertFalse(mitogen.unix.is_path_dead(listener.protocol.path))
72-
os.unlink(listener.protocol.path)
73-
# ensure we catch 0 byte read error log message
74-
self.broker.shutdown()
75-
self.broker.join()
76-
self.broker_shutdown = True
77-
finally:
78-
capture.stop()
68+
self.assertFalse(mitogen.unix.is_path_dead(listener.protocol.path))
69+
os.unlink(listener.protocol.path)
70+
71+
# ensure we catch 0 byte read error log message
72+
self.broker.shutdown()
73+
self.broker.join()
74+
self.broker_shutdown = True
7975

8076

8177
class ClientTest(testlib.TestCase):

0 commit comments

Comments
 (0)