Bug 1981724
Summary: | python-traitlets: FTBFS in Fedora rawhide | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-traitlets | Assignee: | Tomáš Hrnčiar <thrnciar> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mhroncok, orion, python-sig |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://koschei.fedoraproject.org/package/python-traitlets | ||
Whiteboard: | |||
Fixed In Version: | python-traitlets-5.0.5-5.fc35 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-07-23 14:36:18 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, 1927309 |
Description
Tomáš Hrnčiar
2021-07-13 08:20:18 UTC
This is Python 3.10.0b4+ related, the enum repr changes were reverted upstream. ________________ TestUseEnum.test_assign_scoped_enum_value_name ________________ self = <traitlets.tests.test_traitlets_enum.TestUseEnum testMethod=test_assign_scoped_enum_value_name> def test_assign_scoped_enum_value_name(self): # -- CONVERT: string => Enum value (item) scoped_names = ["Color.red", "Color.green", "Color.blue", "Color.yellow"] for value in scoped_names: example = self.Example() example.color = value self.assertIsInstance(example.color, Color) if sys.version_info < (3, 10): self.assertEqual(str(example.color), value) else: > self.assertEqual(repr(example.color), value) E AssertionError: '<Color.red: 1>' != 'Color.red' E - <Color.red: 1> E ? - ---- E + Color.red traitlets/tests/test_traitlets_enum.py:94: AssertionError We just need to drop this patch one again: https://src.fedoraproject.org/rpms/python-traitlets/c/a6a391e999bfac652c0541fbb4e8f79d70bd03c6?branch=rawhide |