Message 410802 - Python tracker
vstinner wrote:
--------------
>> self.assertEqual(repr(type), '<SocketKind.SOCK_STREAM: 1>')
> For this one, I suggest to replace the value with "..." doctest pattern.
That bit of code is from the unittest suite, not the doctest suite.
I went with:
self.assertEqual(repr(type), '<SocketKind.SOCK_STREAM: %r>' % type.value)