[issue22351] NNTP constructor exception leaves socket for garbage collector
STINNER Victor
report at bugs.python.org
Fri Apr 3 14:05:36 CEST 2015
STINNER Victor added the comment:
> Serhiy’s patch looks like it should do the trick. Just get rid of the “self” parameter to make it clearer,
+class MockSslTests(MockSocketTests):
+ def nntp_class(self, *pos, **kw):
Hum, you should use the @staticmethod decorator here.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22351>
_______________________________________
More information about the Python-bugs-list
mailing list