]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35066: Make trailing percent test more portable. (GH-15907)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Sep 2019 11:51:01 +0000 (04:51 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 11:51:01 +0000 (04:51 -0700)
commit0553369b9827bb5497bb7a65f64dd259781ae792
tree7883272b3cb6472faadf38e6f0dffe42edde6209
parentd378fdb10a5476b86b5a01d74c1bcc4e2f52e003
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.
(cherry picked from commit f2173ae38fa49235c3cdc28ae2ca2e19a375a596)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
Lib/test/datetimetester.py