Bug 1948457
| Summary: | liborcus fails to build with Python 3.10: test failure | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
| Component: | liborcus | Assignee: | David Tardon <dtardon> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | caolanm, dtardon, mhroncok, sbergman, thrnciar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-02 19:31:47 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1890881 | ||
|
Description
Tomáš Hrnčiar
2021-04-12 08:40:09 UTC
This fails because the code expects that the string representation of an Enum contains the enum name, which is no longer true in 3.10: # python3.9 Python 3.9.4 (default, Apr 6 2021, 00:00:00) [GCC 11.0.1 20210405 (Red Hat 11.0.1-0)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import enum >>> Foo = enum.Enum('Foo', (('BAR', 1), ('BAZ', 2))) >>> str(Foo.BAR) 'Foo.BAR' # python3.10 Python 3.10.0a7 (default, Apr 6 2021, 00:00:00) [GCC 11.0.1 20210418 (Red Hat 11.0.1-0)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import enum >>> Foo = enum.Enum('Foo', (('BAR', 1), ('BAZ', 2))) >>> str(Foo.BAR) 'BAR' Is this change expected? Never mind, found it: https://docs.python.org/3.10/whatsnew/3.10.html#enum ... |