Bug 2336931

Summary: python-dateparser: FTBFS in Fedora Rawhide: AssertionError in TestTranslateSearch.test_relative_base_setting_2_en
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-dateparserAssignee: Fabian Affolter <mail>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: epel-packagers-sig, gwync, mail, michel, romain.geissler
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/python-dateparser
Whiteboard:
Fixed In Version: python-dateparser-1.2.1-1.fc43 python-dateparser-1.2.1-1.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-01 22:14:50 UTC Type: ---
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: 2300528, 2322407, 2347063    

Description Karolina Surma 2025-01-10 14:49:16 UTC
Description of problem:
Package python-dateparser fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
1.1.7-7.fc41

Steps to Reproduce:
koji build --scratch f42 python-dateparser-1.1.7-7.fc41.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-dateparser

Reproducible: Always

Actual Results:  
_____________ TestTranslateSearch.test_relative_base_setting_2_en ______________
a = (<tests.test_search.TestTranslateSearch testMethod=test_relative_base_setting_2_en>,)
kw = {}
    @wraps(func)
    def standalone_func(*a, **kw):
>       return func(*(a + p.args), **p.kwargs, **kw)
/usr/lib/python3.13/site-packages/parameterized/parameterized.py:620: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/builddir/build/BUILD/python-dateparser-1.1.7-build/dateparser-1.1.7/dateparser/conf.py:92: in wrapper
    return f(*args, **kwargs)
/builddir/build/BUILD/python-dateparser-1.1.7-build/dateparser-1.1.7/tests/test_search.py:527: in test_relative_base_setting
    self.assertEqual(result, expected)
E   AssertionError: Lists differ: [('Ma[205 chars]nfo=<StaticTzInfo 'UTC'>)), ('June 5 am utc', [283 chars]'>))] != [('Ma[205 chars]nfo=<UTC>)), ('June 5 am utc', datetime.dateti[259 chars]C>))]
E   
E   First differing element 5:
E   ('Jun[43 chars], 23, 17, 0, tzinfo=<StaticTzInfo 'EST'>))
E   ('Jun[43 chars], 23, 17, 0, tzinfo=<DstTzInfo 'EST' LMT-1 day, 18:42:00 STD>))
E   
E   Diff is 1295 characters long. Set self.maxDiff to None to see it.

Comment 1 Aoife Moloney 2025-02-26 13:22:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Romain Geissler 2025-03-01 16:03:15 UTC
Will be fixed by this version upgrade: https://src.fedoraproject.org/rpms/python-dateparser/pull-request/4

Comment 3 Fedora Update System 2025-03-01 22:12:17 UTC
FEDORA-2025-ffe96adaa6 (python-dateparser-1.2.1-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-ffe96adaa6

Comment 4 Fedora Update System 2025-03-01 22:14:28 UTC
FEDORA-2025-ff723405b4 (python-dateparser-1.2.1-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-ff723405b4

Comment 5 Fedora Update System 2025-03-01 22:14:50 UTC
FEDORA-2025-ffe96adaa6 (python-dateparser-1.2.1-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-03-02 01:01:42 UTC
FEDORA-2025-ff723405b4 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-ff723405b4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-ff723405b4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-03-15 00:36:21 UTC
FEDORA-2025-ff723405b4 (python-dateparser-1.2.1-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.