Ethan Furman <et...@stoneleaf.us> added the comment:
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) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40066> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com