bpo-41260: C impl of datetime.date.strftime() takes different keyword arg (GH-21712)

This commit is contained in:
Zackery Spytz 2022-11-25 01:21:25 -08:00 committed by GitHub
parent 3a803bcaac
commit b1dcdefc3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -1489,6 +1489,9 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase):
#check that this standard extension works
t.strftime("%f")
# bpo-41260: The parameter was named "fmt" in the pure python impl.
t.strftime(format="%f")
def test_strftime_trailing_percent(self):
# bpo-35066: Make sure trailing '%' doesn't cause datetime's strftime to
# complain. Different libcs have different handling of trailing