mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-46587: Skip tests if strftime does not support glibc extension (GH-31873)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
d8066b420b
commit
2cf7f865f0
5 changed files with 38 additions and 21 deletions
|
@ -1676,7 +1676,8 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase):
|
|||
# Year 42 returns '42', not padded
|
||||
self.assertEqual(d.strftime("%Y"), '%d' % y)
|
||||
# '0042' is obtained anyway
|
||||
self.assertEqual(d.strftime("%4Y"), '%04d' % y)
|
||||
if support.has_strftime_extensions:
|
||||
self.assertEqual(d.strftime("%4Y"), '%04d' % y)
|
||||
|
||||
def test_replace(self):
|
||||
cls = self.theclass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue