Bug 1981724 - python-traitlets: FTBFS in Fedora rawhide
Summary: python-traitlets: FTBFS in Fedora rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-traitlets
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Hrnčiar
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: PYTHON3.10 F35FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-07-13 08:20 UTC by Tomáš Hrnčiar
Modified: 2021-07-23 14:36 UTC (History)
3 users (show)

Fixed In Version: python-traitlets-5.0.5-5.fc35
Clone Of:
Environment:
Last Closed: 2021-07-23 14:36:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-07-13 08:20:18 UTC
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

Comment 1 Miro Hrončok 2021-07-23 13:58:43 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


Note You need to log in before you can comment on or make changes to this bug.