New submission from Benjamin Peterson <benja...@python.org>:

POSIX allows the '%Y' format in strftime to start with a '+' sign for years 
with more than 4 digits. test_time is not tolerant of that, which leads to 
failures like this with musl:

======================================================================
FAIL: test_large_year (test.test_time.TestStrftime4dyear)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_time.py", line 
683, in test_large_year
    return super().test_large_year()
  File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_time.py", line 
706, in test_large_year
    self.assertEqual(self.yearstr(12345), '12345')
AssertionError: '+12345' != '12345'
- +12345
? -
+ 12345

----------
components: Tests
messages: 325203
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: test_time needs to handle '+' at the beginning of large years
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34654>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to