Description of problem: Package python-traitlets fails to build from source in Fedora rawhide. Version-Release number of selected component (if applicable): 5.0.5-4.fc35 Steps to Reproduce: koji build --scratch f35 python-traitlets-5.0.5-4.fc35.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/python-traitlets
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
PR: https://src.fedoraproject.org/rpms/python-traitlets/pull-request/4#