Public bug reported:

Fixed upstream https://github.com/scrapinghub/dateparser/issues/1286

Ref https://autopkgtest.ubuntu.com/results/autopkgtest-
resolute/resolute/amd64/d/dateparser/20260119_154801_ce880@/log.gz

152s =================================== FAILURES 
===================================
152s ___________ TestTranslateSearch.test_search_dates_with_prepositions 
____________
152s
152s self = <tests.test_search.TestTranslateSearch 
testMethod=test_search_dates_with_prepositions>
152s
152s     def test_search_dates_with_prepositions(self):
152s         """Test `search_dates` for parsing Russian date ranges with 
prepositions and language detection."""
152s         result = search_dates(
152s             "Сервис будет недоступен с 12 января по 30 апреля.",
152s             add_detected_language=True,
152s             languages=["ru"],
152s         )
152s         expected = [
152s             ("12 января", datetime.datetime(2025, 1, 12, 0, 0), "ru"),
152s             ("30 апреля", datetime.datetime(2025, 4, 30, 0, 0), "ru"),
152s         ]
152s >       assert result == expected
152s E       AssertionError: assert [('12 января'... 0, 0), 'ru')] == [('12 
января'... 0, 0), 'ru')]
152s E
152s E         At index 0 diff: ('12 января', datetime.datetime(2026, 1, 12, 0, 
0), 'ru') != ('12 января', datetime.datetime(2025, 1, 12, 0, 0), 'ru')
152s E         Use -v to get more diff
152s
152s tests/test_search.py:1105: AssertionError
152s =============================== warnings summary 
===============================

** Affects: dateparser (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

** Description changed:

+ Fixed upstream https://github.com/scrapinghub/dateparser/issues/1286
+ 
  Ref https://autopkgtest.ubuntu.com/results/autopkgtest-
  resolute/resolute/amd64/d/dateparser/20260119_154801_ce880@/log.gz
  
- 
  152s =================================== FAILURES 
===================================
  152s ___________ TestTranslateSearch.test_search_dates_with_prepositions 
____________
- 152s 
+ 152s
  152s self = <tests.test_search.TestTranslateSearch 
testMethod=test_search_dates_with_prepositions>
- 152s 
+ 152s
  152s     def test_search_dates_with_prepositions(self):
  152s         """Test `search_dates` for parsing Russian date ranges with 
prepositions and language detection."""
  152s         result = search_dates(
  152s             "Сервис будет недоступен с 12 января по 30 апреля.",
  152s             add_detected_language=True,
  152s             languages=["ru"],
  152s         )
  152s         expected = [
  152s             ("12 января", datetime.datetime(2025, 1, 12, 0, 0), "ru"),
  152s             ("30 апреля", datetime.datetime(2025, 4, 30, 0, 0), "ru"),
  152s         ]
  152s >       assert result == expected
  152s E       AssertionError: assert [('12 января'... 0, 0), 'ru')] == [('12 
января'... 0, 0), 'ru')]
- 152s E         
+ 152s E
  152s E         At index 0 diff: ('12 января', datetime.datetime(2026, 1, 12, 
0, 0), 'ru') != ('12 января', datetime.datetime(2025, 1, 12, 0, 0), 'ru')
  152s E         Use -v to get more diff
- 152s 
+ 152s
  152s tests/test_search.py:1105: AssertionError
  152s =============================== warnings summary 
===============================

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2138669

Title:
  resolute dateparser autopkgtest fails with hardcoded year

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dateparser/+bug/2138669/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to