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 ethan.furman
Recipients The Compiler, barry, christian.heimes, eli.bendersky, ethan.furman, ezio.melotti, kulikjak, kumaraditya, mrabarnett, mscuthbert, pablogsal, rhettinger, scoder, serhiy.storchaka, veky, vstinner
Date 2022-01-17.15:34:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642433650.16.0.412693387746.issue40066@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2022-01-17 15:34:10ethan.furmansetrecipients: + ethan.furman, barry, rhettinger, scoder, vstinner, christian.heimes, ezio.melotti, mrabarnett, eli.bendersky, serhiy.storchaka, The Compiler, veky, mscuthbert, pablogsal, kulikjak, kumaraditya
2022-01-17 15:34:10ethan.furmansetmessageid: <1642433650.16.0.412693387746.issue40066@roundup.psfhosted.org>
2022-01-17 15:34:10ethan.furmanlinkissue40066 messages
2022-01-17 15:34:10ethan.furmancreate