René's URL Explorer Experiment


Title: [3.12] gh-53203: Improve tests for strptime() (GH-125090) by serhiy-storchaka · Pull Request #125093 · python/cpython · GitHub

Open Graph Title: [3.12] gh-53203: Improve tests for strptime() (GH-125090) by serhiy-storchaka · Pull Request #125093 · python/cpython

X Title: [3.12] gh-53203: Improve tests for strptime() (GH-125090) by serhiy-storchaka · Pull Request #125093 · python/cpython

Description: Run them with different locales and different date and time. Add the @run_with_locales() decorator to run the test with multiple locales. Improve the run_with_locale() context manager/decorator -- it now catches only expected exceptions and reports the test as skipped if no appropriate locale is available. (cherry picked from commit 19984fe) Issue: gh-53203

Open Graph Description: Run them with different locales and different date and time. Add the @run_with_locales() decorator to run the test with multiple locales. Improve the run_with_locale() context manager/decorator -- ...

X Description: Run them with different locales and different date and time. Add the @run_with_locales() decorator to run the test with multiple locales. Improve the run_with_locale() context manager/decorator -- ...

Opengraph URL: https://github.com/python/cpython/pull/125093

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:37f58f05-cca3-464d-b667-db63cb9a77a4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8FEA:17543D:CA2413:FFE23C:6B022E07
html-safe-nonceb6bc736ceabb3412319d3d960c194f596dfef538980551d6d4e547a67f82724b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkVBOjE3NTQzRDpDQTI0MTM6RkZFMjNDOjZCMDIyRTA3IiwidmlzaXRvcl9pZCI6IjE4OTA0NTg2MzM0MTA1ODgxNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac87c8d41abc9db453ff84db6bda182a7c85e5b7f512ffd6826aa5bffc56a57890
hovercard-subject-tagpull_request:2112615972
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/125093/files
twitter:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
og:image:altRun them with different locales and different date and time. Add the @run_with_locales() decorator to run the test with multiple locales. Improve the run_with_locale() context manager/decorator -- ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/125093/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F125093%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F125093%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/125093/files
Reloadhttps://github.com/python/cpython/pull/125093/files
Reloadhttps://github.com/python/cpython/pull/125093/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
serhiy-storchakahttps://github.com/serhiy-storchaka
python:3.12https://github.com/python/cpython/tree/3.12
serhiy-storchaka:backport-19984fe-3.12https://github.com/serhiy-storchaka/cpython/tree/backport-19984fe-3.12
Conversation 0 https://github.com/python/cpython/pull/125093
Commits 1 https://github.com/python/cpython/pull/125093/commits
Checks 0 https://github.com/python/cpython/pull/125093/checks
Files changed https://github.com/python/cpython/pull/125093/files
Please reload this pagehttps://github.com/python/cpython/pull/125093/files
[3.12] gh-53203: Improve tests for strptime() (GH-125090) https://github.com/python/cpython/pull/125093/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/125093/files
cf4be1d [3.12] gh-53203: Improve tests for strptime() (GH-125090) serhiy-storchaka Oct 8, 2024 https://github.com/python/cpython/pull/125093/commits/cf4be1db0169405aa166d0e22b063c4765cf5908
Clear filters https://github.com/python/cpython/pull/125093/files
Please reload this pagehttps://github.com/python/cpython/pull/125093/files
Please reload this pagehttps://github.com/python/cpython/pull/125093/files
pickletester.py https://github.com/python/cpython/pull/125093/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
__init__.py https://github.com/python/cpython/pull/125093/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
test_codecs.py https://github.com/python/cpython/pull/125093/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
test_decimal.py https://github.com/python/cpython/pull/125093/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
test_float.py https://github.com/python/cpython/pull/125093/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
test_imaplib.py https://github.com/python/cpython/pull/125093/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
test_strptime.py https://github.com/python/cpython/pull/125093/files#diff-6608d350ddc7f4ec1a800ae022cb3803725169f47e6878716ea2496670c58c09
test_time.py https://github.com/python/cpython/pull/125093/files#diff-b0b95b7028b45727e52c7fd7c05f5ccd6f1b907496c416a5eacd771f45a20ae8
test_types.py https://github.com/python/cpython/pull/125093/files#diff-d5154ccf7a97612e4a8b06a6f0f48f15554e426e72e698f246d17d3dd8e3a75a
test_unicode.py https://github.com/python/cpython/pull/125093/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41
Lib/test/pickletester.pyhttps://github.com/python/cpython/pull/125093/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
View file https://github.com/serhiy-storchaka/cpython/blob/cf4be1db0169405aa166d0e22b063c4765cf5908/Lib/test/pickletester.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125093/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
https://github.com/python/cpython/pull/125093/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
https://github.com/python/cpython/pull/125093/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
https://github.com/python/cpython/pull/125093/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
Lib/test/support/__init__.pyhttps://github.com/python/cpython/pull/125093/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
View file https://github.com/serhiy-storchaka/cpython/blob/cf4be1db0169405aa166d0e22b063c4765cf5908/Lib/test/support/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125093/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/125093/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/125093/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
Lib/test/test_codecs.pyhttps://github.com/python/cpython/pull/125093/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
View file https://github.com/serhiy-storchaka/cpython/blob/cf4be1db0169405aa166d0e22b063c4765cf5908/Lib/test/test_codecs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125093/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/pull/125093/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/pull/125093/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/pull/125093/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/blob/3.12/.github/CODEOWNERS#L139
Lib/test/test_decimal.pyhttps://github.com/python/cpython/pull/125093/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
View file https://github.com/serhiy-storchaka/cpython/blob/cf4be1db0169405aa166d0e22b063c4765cf5908/Lib/test/test_decimal.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125093/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
https://github.com/python/cpython/pull/125093/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
Lib/test/test_float.pyhttps://github.com/python/cpython/pull/125093/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
View file https://github.com/serhiy-storchaka/cpython/blob/cf4be1db0169405aa166d0e22b063c4765cf5908/Lib/test/test_float.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125093/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
https://github.com/python/cpython/pull/125093/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
https://github.com/python/cpython/blob/3.12/.github/CODEOWNERS#L89
Lib/test/test_imaplib.pyhttps://github.com/python/cpython/pull/125093/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
View file https://github.com/serhiy-storchaka/cpython/blob/cf4be1db0169405aa166d0e22b063c4765cf5908/Lib/test/test_imaplib.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125093/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
https://github.com/python/cpython/pull/125093/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
Please reload this pagehttps://github.com/python/cpython/pull/125093/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.