[issue14310] Socket duplication for windows
Kristján Valur Jónsson
report at bugs.python.org
Sat Apr 7 00:18:22 CEST 2012
Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:
by "memberfunction" I mean a member of the class. I tried staticmethod and it didn't work:
I tried a staticmethod and it didn't work:
======================================================================
ERROR: testShare (test.test_socket.TestSocketSharing)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\pydev\cpython\lib\test\test_socket.py", line 4723, in testShare
p.start()
File "D:\pydev\cpython\lib\multiprocessing\process.py", line 136, in start
self._popen = Popen(self)
File "D:\pydev\cpython\lib\multiprocessing\forking.py", line 269, in __init__
dump(process_obj, to_child, HIGHEST_PROTOCOL)
File "D:\pydev\cpython\lib\multiprocessing\forking.py", line 190, in dump
ForkingPickler(file, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <class 'function'>: attribute lookup builtins.function failed
(Picking this kind of stuff should work of course but that's another story)
But changing it to staticmethod strangely fixes it. Interesting.
the gethostbynametests were an encoding mistake. Would not have been checked in but it was nice of you to notice.
These are windows only tests for python 3.3. There is no need to test for IPV6.
Here is yet another patch.
----------
Added file: http://bugs.python.org/file25145/duplicate.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14310>
_______________________________________
More information about the Python-bugs-list
mailing list