Visitar URL original
bpo-41816: `StrEnum.__str__` is `str.__str__` by ethanfurman · Pull Request #22362 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add another test
  • Loading branch information
ethanfurman committed Sep 22, 2020
commit 4a4867c3ffc052013f3a77e7c6803d7b3f1cbdce
1 change: 1 addition & 0 deletions Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,7 @@ class GoodStrEnum(StrEnum):
three = b'3', 'ascii'
Comment thread
ethanfurman marked this conversation as resolved.
four = b'4', 'latin1', 'strict'
self.assertEqual(GoodStrEnum.one, '1')
self.assertEqual(str(GoodStrEnum.one), '1')
self.assertEqual(GoodStrEnum.one, str(GoodStrEnum.one))
Comment thread
ethanfurman marked this conversation as resolved.
self.assertEqual(GoodStrEnum.one, '{}'.format(GoodStrEnum.one))
#
Expand Down