bpo-35066: Make trailing percent test more portable. by benjaminp · Pull Request #15907 · python/cpython

pganssle

pganssle

@benjaminp

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.

pganssle

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 11, 2019
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 f2173ae)

Co-authored-by: Benjamin Peterson <benjamin@python.org>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Sep 11, 2019
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 f2173ae)

Co-authored-by: Benjamin Peterson <benjamin@python.org>

miss-islington added a commit that referenced this pull request

Sep 11, 2019
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 f2173ae)

Co-authored-by: Benjamin Peterson <benjamin@python.org>

miss-islington added a commit that referenced this pull request

Sep 11, 2019
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 f2173ae)

Co-authored-by: Benjamin Peterson <benjamin@python.org>

DinoV pushed a commit to DinoV/cpython that referenced this pull request

Sep 12, 2019
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.

websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request

Jul 20, 2020
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.