Ken Takata wrote: > 2016/2/4 Thu 8:12:02 UTC+9 Bram Moolenaar wrote: > > Patch 7.4.1256 > > Problem: On Mac sys.exit(0) doesn't kill the test server. > > Solution: Use self.server.shutdown(). (Jun Takimoto) > > Files: src/testdir/test_channel.py > > After this patch, test_channel.py doesn't exit when it receives '!quit!' > on Windows. > Following patch seems to fix this: > > --- a/src/testdir/test_channel.py > +++ b/src/testdir/test_channel.py > @@ -133,7 +133,7 @@ class ThreadedTCPRequestHandler(socketse > elif decoded[1] == '!quit!': > # we're done > self.server.shutdown() > - break > + return > elif decoded[1] == '!crash!': > # Crash! > 42 / 0 >
Thanks. Strange that this differs between systems. > (And also after the patch 7.4.1256, test_channel.py doesn't exit when > it receives Ctrl-C on Windows. But this is not so important.) -- hundred-and-one symptoms of being an internet addict: 189. You put your e-mail address in the upper left-hand corner of envelopes. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
