diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2021-03-31 04:17:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 04:17:26 (GMT) |
commit | b775106d940e3d77c8af7967545bb9a5b7b162df (patch) | |
tree | a5146740d7fab61a70bf410e4f348a9525cb1fd4 /Lib/test/test_pydoc.py | |
parent | 51a85ddce8b336addcb61b96f04c9c5edef07296 (diff) | |
download | cpython-b775106d940e3d77c8af7967545bb9a5b7b162df.zip cpython-b775106d940e3d77c8af7967545bb9a5b7b162df.tar.gz cpython-b775106d940e3d77c8af7967545bb9a5b7b162df.tar.bz2 |
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_pydoc.py')
-rw-r--r-- | Lib/test/test_pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 3bc0e9e..61575b5 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -453,7 +453,7 @@ class PydocDocTest(unittest.TestCase): zero = 0 one = 1 doc = pydoc.render_doc(BinaryInteger) - self.assertIn('<BinaryInteger.zero: 0>', doc) + self.assertIn('BinaryInteger.zero', doc) def test_mixed_case_module_names_are_lower_cased(self): # issue16484 |