René's URL Explorer Experiment


Title: gh-107862: Add property tests for strftime/strptime by pganssle · Pull Request #124550 · python/cpython · GitHub

Open Graph Title: gh-107862: Add property tests for strftime/strptime by pganssle · Pull Request #124550 · python/cpython

X Title: gh-107862: Add property tests for strftime/strptime by pganssle · Pull Request #124550 · python/cpython

Description: This adds a new test for strptime / strftime that uses hypothesis to ensure that some inverse relationships hold. While creating it I found several bugs: #124531, #124529 and #124549. I am hoping this could be useful with #120752 To Do: Add stubs to make sure this works without hypothesiis Configure this the same way test_zoneinfo_property is configured so that it is run separately against the C and Python implementations. Issue: gh-107862

Open Graph Description: This adds a new test for strptime / strftime that uses hypothesis to ensure that some inverse relationships hold. While creating it I found several bugs: #124531, #124529 and #124549. I am hoping t...

X Description: This adds a new test for strptime / strftime that uses hypothesis to ensure that some inverse relationships hold. While creating it I found several bugs: #124531, #124529 and #124549. I am hoping t...

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

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:1832120a-a158-d922-f1a1-41cbbe0b7d89
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBB26:FC5BE:36A9D09:489A0D7:6B020913
html-safe-noncee162f4f74f16d2a30dbcec31ec9ce614a88355aaa40ff140d3daaa147af8c80f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjI2OkZDNUJFOjM2QTlEMDk6NDg5QTBENzo2QjAyMDkxMyIsInZpc2l0b3JfaWQiOiIyNjIxNjg0Nzk1NjAzODE0Njc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac26fc0a8f5f3278a5f466b790f9894fc9308957791703e56546521fbb3991672d
hovercard-subject-tagpull_request:2092332246
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/124550/files
twitter:imagehttps://avatars.githubusercontent.com/u/1377457?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1377457?s=400&v=4
og:image:altThis adds a new test for strptime / strftime that uses hypothesis to ensure that some inverse relationships hold. While creating it I found several bugs: #124531, #124529 and #124549. I am hoping t...
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/124550/changes#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124550%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%2F124550%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/124550/changes
Reloadhttps://github.com/python/cpython/pull/124550/changes
Reloadhttps://github.com/python/cpython/pull/124550/changes
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
pgansslehttps://github.com/pganssle
python:mainhttps://github.com/python/cpython/tree/main
pganssle:strftime_hypothesishttps://github.com/pganssle/cpython/tree/strftime_hypothesis
Conversation 2 https://github.com/python/cpython/pull/124550
Commits 14 https://github.com/python/cpython/pull/124550/commits
Checks 45 https://github.com/python/cpython/pull/124550/checks
Files changed https://github.com/python/cpython/pull/124550/files
Please reload this pagehttps://github.com/python/cpython/pull/124550/changes
gh-107862: Add property tests for strftime/strptime https://github.com/python/cpython/pull/124550/changes#top
Show all changes 14 commits https://github.com/python/cpython/pull/124550/files
9893d09 Add property tests for strftime/strptime pganssle Sep 25, 2024 https://github.com/python/cpython/pull/124550/commits/9893d092386495461051f7d19ce31271657a5a7a
7e98780 Run datetime property examples without Hypothesis pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/7e987808e4535b16d8e3406cdd09ce1614c84d46
4905a37 Run datetime property tests against both implementations pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/4905a3712ab6346e9d19e29df7777cd6417daf3c
ad213ec fixup! Add property tests for strftime/strptime pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/ad213ec6ddc3fc3dd996bf382aa3d6eb2d9456b2
f3e4833 Add strptime calendar representation property tests pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/f3e48339ed288ec5a650ea3a5f32ec03f4b40253
9ea08b8 Add strptime fraction and UTC offset property tests pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/9ea08b84ffd3b97581625faebd231ecde87c5854
9fe9f3c Add strptime invalid-field property tests pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/9fe9f3cf8a7cdaa9b530975985fc2d6b14008de2
ec83165 Add strptime name and literal property tests pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/ec8316541ff8795ba389ce8d31487f819a0caeb7
81c0aca Add strptime public entry point property tests pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/81c0aca017c6c7cfdb6cf730ff6ebd195506cc4c
a85c9c7 Add expected failure for strptime rollover metadata pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/a85c9c78201b11c498dd5f8ababf5867826df446
22ab46e Add expected failure for repeated strptime directive errors pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/22ab46e971b566dedcdcd20fd6d275e68f8b546c
b38cd94 Add strptime locale cache property tests pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/b38cd94f6ca0faff5e893dc09772c50d4130ad97
b43a3f5 Add strptime redundant directive ordering property tests pganssle Sep 26, 2026 https://github.com/python/cpython/pull/124550/commits/b43a3f54673e03fb6f0015a284daa7f3d96e014b
609ed13 fixup! Add expected failure for strptime rollover metadata pganssle Sep 27, 2026 https://github.com/python/cpython/pull/124550/commits/609ed13934095a150b644cfed1ad7e08f4f579de
Clear filters https://github.com/python/cpython/pull/124550/files
Please reload this pagehttps://github.com/python/cpython/pull/124550/changes
Please reload this pagehttps://github.com/python/cpython/pull/124550/changes
strategies.py https://github.com/python/cpython/pull/124550/changes#diff-bdcceb9df0db7988646926672e39dda72ccfc2daf46e6499be65fa8690bf9cd7
test_datetime_property.py https://github.com/python/cpython/pull/124550/changes#diff-64d47802976dfa0677dd0b6687260c8ab2242dd386afcc29ba3a2e1b2f1f98ac
Lib/test/support/_hypothesis_stubs/strategies.pyhttps://github.com/python/cpython/pull/124550/changes#diff-bdcceb9df0db7988646926672e39dda72ccfc2daf46e6499be65fa8690bf9cd7
View file https://github.com/python/cpython/blob/609ed13934095a150b644cfed1ad7e08f4f579de/Lib/test/support/_hypothesis_stubs/strategies.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/124550/{{ revealButtonHref }}
https://github.com/python/cpython/pull/124550/changes#diff-bdcceb9df0db7988646926672e39dda72ccfc2daf46e6499be65fa8690bf9cd7
https://github.com/python/cpython/pull/124550/changes#diff-bdcceb9df0db7988646926672e39dda72ccfc2daf46e6499be65fa8690bf9cd7
Please reload this pagehttps://github.com/python/cpython/pull/124550/changes
Please reload this pagehttps://github.com/python/cpython/pull/124550/changes
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.