summaryrefslogtreecommitdiff
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2021-03-30 21:17:26 -0700
committerGitHub <noreply@github.com>2021-03-30 21:17:26 -0700
commitb775106d940e3d77c8af7967545bb9a5b7b162df (patch)
treea5146740d7fab61a70bf410e4f348a9525cb1fd4 /Lib/test/test_ssl.py
parent51a85ddce8b336addcb61b96f04c9c5edef07296 (diff)
downloadcpython-git-b775106d940e3d77c8af7967545bb9a5b7b162df.tar.gz
bpo-40066: Enum: modify `repr()` and `str()` (GH-22392)
* Enum: streamline repr() and str(); improve docs - repr() is now ``enum_class.member_name`` - stdlib global enums are ``module_name.member_name`` - str() is now ``member_name`` - add HOW-TO section for ``Enum`` - change main documentation to be an API reference
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index fa77406bca..4ef1fb8d63 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -381,7 +381,7 @@ class BasicSocketTests(unittest.TestCase):
# Make sure that the PROTOCOL_* constants have enum-like string
# reprs.
proto = ssl.PROTOCOL_TLS
- self.assertEqual(str(proto), '_SSLMethod.PROTOCOL_TLS')
+ self.assertEqual(str(proto), 'PROTOCOL_TLS')
ctx = ssl.SSLContext(proto)
self.assertIs(ctx.protocol, proto)