tests: Fix hanging test_read_pty_output

This commit is contained in:
Yury Selivanov 2018-05-22 18:08:54 -04:00
parent b5aa30b264
commit 6128b960c3
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ class _BasePipeTest:
# ignore it. # ignore it.
self.loop.set_exception_handler(lambda loop, ctx: None) self.loop.set_exception_handler(lambda loop, ctx: None)
os.close(slave) os.close(slave)
proto.transport.close()
self.loop.run_until_complete(proto.done) self.loop.run_until_complete(proto.done)
self.assertEqual( self.assertEqual(