diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-07 21:44:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 21:44:21 (GMT) |
commit | 74d1663580d1914bd110c3ab7282451f5e2cd2b5 (patch) | |
tree | 0f2c442a8c18ada0102701bd3adaa8a27f04c7cc /Lib/test/test_collections.py | |
parent | d382f7ee0b98e4ab6ade9384268f25c06be462ad (diff) | |
download | cpython-74d1663580d1914bd110c3ab7282451f5e2cd2b5.zip cpython-74d1663580d1914bd110c3ab7282451f5e2cd2b5.tar.gz cpython-74d1663580d1914bd110c3ab7282451f5e2cd2b5.tar.bz2 |
bpo-46296: [Enum] add a test for missing `value` recovery (GH-30458)
In `__set_name__` there is a check for the `_value_` attribute and an attempt to add it if missing; this adds a test to cover the case for simple enums with a custom `__new__` method.
Diffstat (limited to 'Lib/test/test_collections.py')
0 files changed, 0 insertions, 0 deletions