René's URL Explorer Experiment


Title: [3.13] gh-53203: Improve tests for strptime() (GH-125090) by miss-islington · Pull Request #125091 · python/cpython · GitHub

Open Graph Title: [3.13] gh-53203: Improve tests for strptime() (GH-125090) by miss-islington · Pull Request #125091 · python/cpython

X Title: [3.13] gh-53203: Improve tests for strptime() (GH-125090) by miss-islington · Pull Request #125091 · 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) Co-authored-by: Serhiy Storchaka storchaka@gmail.com 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/125091

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:5a31bb01-a702-0ffd-f3b1-91a5895aa7d4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEE18:111FE:20CAD2:2B9758:6B022E00
html-safe-nonce27824e53d5e7b818d888f62152205ef5fcedeb2370e22e42e60992f7409b4d2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTE4OjExMUZFOjIwQ0FEMjoyQjk3NTg6NkIwMjJFMDAiLCJ2aXNpdG9yX2lkIjoiMjYzODk1NTcyNjY4NDQzMzkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac88e2eeaca3ee5736c651129d0f3db43b43517656d8eddedac1325f2ecfb70ea0
hovercard-subject-tagpull_request:2112529247
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/125091/files
twitter:imagehttps://avatars.githubusercontent.com/u/31488909?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/31488909?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/125091/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F125091%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%2F125091%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/125091/files
Reloadhttps://github.com/python/cpython/pull/125091/files
Reloadhttps://github.com/python/cpython/pull/125091/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.13https://github.com/python/cpython/tree/3.13
miss-islington:backport-19984fe-3.13https://github.com/miss-islington/cpython/tree/backport-19984fe-3.13
Conversation 0 https://github.com/python/cpython/pull/125091
Commits 1 https://github.com/python/cpython/pull/125091/commits
Checks 0 https://github.com/python/cpython/pull/125091/checks
Files changed https://github.com/python/cpython/pull/125091/files
Please reload this pagehttps://github.com/python/cpython/pull/125091/files
[3.13] gh-53203: Improve tests for strptime() (GH-125090) https://github.com/python/cpython/pull/125091/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/125091/files
a255b2f gh-53203: Improve tests for strptime() (GH-125090) serhiy-storchaka Oct 8, 2024 https://github.com/python/cpython/pull/125091/commits/a255b2ffd3e3be6a8070d2605ec50f977186ce5e
Clear filters https://github.com/python/cpython/pull/125091/files
Please reload this pagehttps://github.com/python/cpython/pull/125091/files
Please reload this pagehttps://github.com/python/cpython/pull/125091/files
pickletester.py https://github.com/python/cpython/pull/125091/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
__init__.py https://github.com/python/cpython/pull/125091/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
test_codecs.py https://github.com/python/cpython/pull/125091/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
test_decimal.py https://github.com/python/cpython/pull/125091/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
test_float.py https://github.com/python/cpython/pull/125091/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
test_imaplib.py https://github.com/python/cpython/pull/125091/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
test_str.py https://github.com/python/cpython/pull/125091/files#diff-8809b8b5760b4fe0fe405eed574cce8d237bda65b4b3168eed59c4d65e918d64
test_strptime.py https://github.com/python/cpython/pull/125091/files#diff-6608d350ddc7f4ec1a800ae022cb3803725169f47e6878716ea2496670c58c09
test_time.py https://github.com/python/cpython/pull/125091/files#diff-b0b95b7028b45727e52c7fd7c05f5ccd6f1b907496c416a5eacd771f45a20ae8
test_types.py https://github.com/python/cpython/pull/125091/files#diff-d5154ccf7a97612e4a8b06a6f0f48f15554e426e72e698f246d17d3dd8e3a75a
Lib/test/pickletester.pyhttps://github.com/python/cpython/pull/125091/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
View file https://github.com/miss-islington/cpython/blob/a255b2ffd3e3be6a8070d2605ec50f977186ce5e/Lib/test/pickletester.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125091/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125091/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
https://github.com/python/cpython/pull/125091/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
https://github.com/python/cpython/pull/125091/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
https://github.com/python/cpython/pull/125091/files#diff-7d6d2ff428aa3485c637b99154c65cca68ef71ac4e7d4cfe373ac8b1e4e17ff2
Lib/test/support/__init__.pyhttps://github.com/python/cpython/pull/125091/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
View file https://github.com/miss-islington/cpython/blob/a255b2ffd3e3be6a8070d2605ec50f977186ce5e/Lib/test/support/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125091/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125091/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/125091/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/125091/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
Lib/test/test_codecs.pyhttps://github.com/python/cpython/pull/125091/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
View file https://github.com/miss-islington/cpython/blob/a255b2ffd3e3be6a8070d2605ec50f977186ce5e/Lib/test/test_codecs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125091/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125091/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/pull/125091/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/pull/125091/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/pull/125091/files#diff-a71f034c62318430dc94a9f744b5333e7d8eec577d3a23ab0b76a781872c9b96
https://github.com/python/cpython/blob/3.13/.github/CODEOWNERS#L205
Lib/test/test_decimal.pyhttps://github.com/python/cpython/pull/125091/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
View file https://github.com/miss-islington/cpython/blob/a255b2ffd3e3be6a8070d2605ec50f977186ce5e/Lib/test/test_decimal.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125091/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125091/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
https://github.com/python/cpython/pull/125091/files#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
Lib/test/test_float.pyhttps://github.com/python/cpython/pull/125091/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
View file https://github.com/miss-islington/cpython/blob/a255b2ffd3e3be6a8070d2605ec50f977186ce5e/Lib/test/test_float.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125091/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125091/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
https://github.com/python/cpython/pull/125091/files#diff-101957dfb9ef9c3a34ad39d7ad89a2d7d69290980553f9425acda0d5633ad453
https://github.com/python/cpython/blob/3.13/.github/CODEOWNERS#L142
Lib/test/test_imaplib.pyhttps://github.com/python/cpython/pull/125091/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
View file https://github.com/miss-islington/cpython/blob/a255b2ffd3e3be6a8070d2605ec50f977186ce5e/Lib/test/test_imaplib.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125091/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125091/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
https://github.com/python/cpython/pull/125091/files#diff-f5b46078e10c828dda10aa193e6ef335e75ac250561e9341444431524a5fde6d
Lib/test/test_str.pyhttps://github.com/python/cpython/pull/125091/files#diff-8809b8b5760b4fe0fe405eed574cce8d237bda65b4b3168eed59c4d65e918d64
View file https://github.com/miss-islington/cpython/blob/a255b2ffd3e3be6a8070d2605ec50f977186ce5e/Lib/test/test_str.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/125091/{{ revealButtonHref }}
https://github.com/python/cpython/pull/125091/files#diff-8809b8b5760b4fe0fe405eed574cce8d237bda65b4b3168eed59c4d65e918d64
https://github.com/python/cpython/pull/125091/files#diff-8809b8b5760b4fe0fe405eed574cce8d237bda65b4b3168eed59c4d65e918d64
Please reload this pagehttps://github.com/python/cpython/pull/125091/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.