This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benjamin.peterson
Recipients benjamin.peterson
Date 2018-09-12.22:39:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536791981.88.0.956365154283.issue34654@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-09-12 22:39:41benjamin.petersonsetrecipients: + benjamin.peterson
2018-09-12 22:39:41benjamin.petersonsetmessageid: <1536791981.88.0.956365154283.issue34654@psf.upfronthosting.co.za>
2018-09-12 22:39:41benjamin.petersonlinkissue34654 messages
2018-09-12 22:39:41benjamin.petersoncreate