]> granicus.if.org Git - python/commit
bpo-35066: Make trailing percent test more portable. (GH-15907)
authorBenjamin Peterson <benjamin@python.org>
Wed, 11 Sep 2019 10:50:38 +0000 (11:50 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 10:50:38 +0000 (11:50 +0100)
commitf2173ae38fa49235c3cdc28ae2ca2e19a375a596
tree3b8da2cef5c99cbc560bdb0b4570781fc67fade9
parentc37447481ec8f6d0e49d0587ec0de3f9e7d56b28
bpo-35066: Make trailing percent test more portable. (GH-15907)

Different libc implementations have different behavior when presented with trailing % in strftime strings. To make test_strftime_trailing_percent more portable, compare the output of datetime.strftime directly to that of time.strftime rather than hardcoding.
Lib/test/datetimetester.py