id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges
13577,FAIL: test_pretty_dateinfo without Babel on windows-2022 image,Jun Omae,Jun Omae,"https://github.com/edgewall/trac/actions/runs/4409640379/jobs/7726313888
{{{
======================================================================
FAIL: test_pretty_dateinfo (trac.web.tests.chrome.ChromeTemplateRenderingTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File ""D:\a\trac\trac\trac\web\tests\chrome.py"", line 1118, in test_pretty_dateinfo
self.assertRegex(content, textwrap.dedent(""""""\
AssertionError: Regex didn't match: '\n\n
\n\n\n- [0-9]+ years ago
\n- [0-9]+ years ago
\n- on 07/01/(20)?07
\n- on 07/01/(20)?07 at 12:34:56
\n- 07/01/(20)?07
\n- 07/01/(20)?07 12:34:56
\n
\n\n' not found in '\n\n\n\n\n- 16 years ago
\n- 16 years ago
\n- on 7/1/2007
\n- on 7/1/2007 at 12:34:56 PM
\n- 7/1/2007
\n- 7/1/2007 12:34:56 PM
\n
\n\n' :
- 16 years ago
- 16 years ago
- on 7/1/2007
- on 7/1/2007 at 12:34:56 PM
- 7/1/2007
- 7/1/2007 12:34:56 PM
----------------------------------------------------------------------
Ran 2472 tests in 234.103s
FAILED (failures=1, skipped=9)
mingw32-make: *** [makefile:477: unit-test] Error 1
}}}
We expects `07/01/2007 12:34:56 PM` but got `7/1/2007 12:34:56 PM`. It seems that date formats are changed in the user session on windows-2022 image....",defect,closed,normal,1.6,general,,normal,fixed,,,,,,Fixed test failing due to `locale.setlocale()`.