mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-40066: [Enum] fix tests (GH-30643)
- skip doctest that changes depending on target system - skip doctest that only fails on CI - substitute in values that change depending on target system
This commit is contained in:
parent
a4bc2218d2
commit
62a6594e66
3 changed files with 11 additions and 11 deletions
|
@ -373,8 +373,8 @@ class BasicSocketTests(unittest.TestCase):
|
|||
# Make sure that the PROTOCOL_* constants have enum-like string
|
||||
# reprs.
|
||||
proto = ssl.PROTOCOL_TLS_CLIENT
|
||||
self.assertEqual(repr(proto), '<_SSLMethod.PROTOCOL_TLS_CLIENT: 16>')
|
||||
self.assertEqual(str(proto), '16')
|
||||
self.assertEqual(repr(proto), '<_SSLMethod.PROTOCOL_TLS_CLIENT: %r>' % proto.value)
|
||||
self.assertEqual(str(proto), str(proto.value))
|
||||
ctx = ssl.SSLContext(proto)
|
||||
self.assertIs(ctx.protocol, proto)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue