Skip to content

[3.8] bpo-35066: Make trailing percent test more portable. (GH-15907)#15915

Merged
miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-f2173ae-3.8
Sep 11, 2019
Merged

[3.8] bpo-35066: Make trailing percent test more portable. (GH-15907)#15915
miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-f2173ae-3.8

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 11, 2019

Copy link
Copy Markdown
Contributor

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

https://bugs.python.org/issue35066

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

Copy link
Copy Markdown
Contributor Author

@benjaminp: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit f3e430b into python:3.8 Sep 11, 2019
@miss-islington
miss-islington deleted the backport-f2173ae-3.8 branch September 11, 2019 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants