Hi,

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


(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.)


Regards,
Ken Takata

-- 
-- 
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.

Raspunde prin e-mail lui