Bug 2325451 - python-django-extensions fails to build with Python 3.14: ForeignKeySearchInputTestCase.test_widget_works: AssertionError
Summary: python-django-extensions fails to build with Python 3.14: ForeignKeySearchInp...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django-extensions
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-12 12:57 UTC by Karolina Surma
Modified: 2024-11-21 21:01 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-21 20:25:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-11-12 12:57:34 UTC
python-django-extensions fails to build with Python 3.14.0a1.

=================================== FAILURES ===================================
_______________ ForeignKeySearchInputTestCase.test_widget_works ________________

self = <tests.test_admin_widgets.ForeignKeySearchInputTestCase testMethod=test_widget_works>

    def test_widget_works(self):
        name = models.Name.objects.create(name="Name")
        person = models.Person.objects.create(
            name=name,
            age=30,
        )
        club = models.Club.objects.create(
            name='Club',
        )
        membership = models.Membership.objects.create(club=club, person=person)
    
        widget = widgets.ForeignKeySearchInput(
            models.Membership._meta.get_field('person').remote_field,
            ['person__name'],
        )
    
        label = widget.label_for_value(membership.pk)
    
        self.assertEqual(
            Truncator(person).words(14, truncate='...'),
            label,
        )
    
        # Just making sure rendering the widget doesn't cause any issue
        widget.render('person', person.pk)
        widget.render('person', None)
    
        # Check media to make sure rendering media doesn't cause any issue
>       self.assertListEqual(
            [
                '/static/django_extensions/js/jquery.bgiframe.js',
                '/static/django_extensions/js/jquery.ajaxQueue.js',
                '/static/django_extensions/js/jquery.autocomplete.js',
            ],
            widget.media._js,
        )
E       AssertionError: Lists differ: ['/static/django_extensions/js/jquery.bgifr[110 chars].js'] != ['django_extensions/js/jquery.bgiframe.js',[86 chars].js']
E       
E       First differing element 0:
E       '/static/django_extensions/js/jquery.bgiframe.js'
E       'django_extensions/js/jquery.bgiframe.js'
E       
E       - ['/static/django_extensions/js/jquery.bgiframe.js',
E       ?   --------
E       
E       + ['django_extensions/js/jquery.bgiframe.js',
E       -  '/static/django_extensions/js/jquery.ajaxQueue.js',
E       ?   --------
E       
E       +  'django_extensions/js/jquery.ajaxQueue.js',
E       -  '/static/django_extensions/js/jquery.autocomplete.js']
E       ?   --------
E       
E       +  'django_extensions/js/jquery.autocomplete.js']

tests/test_admin_widgets.py:40: AssertionError

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08225223-python-django-extensions/

For all our attempts to build python-django-extensions with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-django-extensions/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Michel Lind 2024-11-21 20:25:46 UTC
Seems to suddenly pass both locally and in COPR as of today

Comment 2 Miro Hrončok 2024-11-21 21:01:25 UTC
"suddenly" probably means when we updated from 3.14.0a1 to 3.14.0a2 :)


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