[issue14310] Socket duplication for windows

Antoine Pitrou report at bugs.python.org
Fri Apr 6 23:48:14 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> Here is a new patch, with more tests.
> Note that the process worker function can't be a member function
> because of how multiprocessing works on Windows.

Some comments:
- I said classmethod, not member function; this is how
test_multiprocessing works, so it should be possible...
- why did you change the gethostbyname() tests?
- before using AF_INET6, you might have to test that IPv6 is available
on the test machine (I think there are variables / functions for that in
test_socket)
- in compareSockets:

+        if org.proto != 0:
+            self.assertEqual(sock.proto, other.proto)

`sock` doesn't seem to exist at all...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14310>
_______________________________________


More information about the Python-bugs-list mailing list