This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients giampaolo.rodola, kristjan.jonsson, pitrou, santoso.wijaya, sbt
Date 2012-04-06.22:18:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333750702.24.0.886816204855.issue14310@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-04-06 22:18:22kristjan.jonssonsetrecipients: + kristjan.jonsson, pitrou, giampaolo.rodola, santoso.wijaya, sbt
2012-04-06 22:18:22kristjan.jonssonsetmessageid: <1333750702.24.0.886816204855.issue14310@psf.upfronthosting.co.za>
2012-04-06 22:18:21kristjan.jonssonlinkissue14310 messages
2012-04-06 22:18:21kristjan.jonssoncreate