[docs] [issue20386] socket.SocketType enum overwrites import of _socket.SocketType

Berker Peksag report at bugs.python.org
Wed Oct 15 10:56:15 CEST 2014


Berker Peksag added the comment:

+ self.assertTrue(socket.SocketType is _socket.socket)

You can use assertIs instead of assertTrue.

----------
nosy: +berker.peksag
versions: +Python 3.5

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


More information about the docs mailing list