René's URL Explorer Experiment


Title: test_date_locale2 fails on AIX · Issue #139624 · python/cpython · GitHub

Open Graph Title: test_date_locale2 fails on AIX · Issue #139624 · python/cpython

X Title: test_date_locale2 fails on AIX · Issue #139624 · python/cpython

Description: Bug report Bug description: AIX's strptime implementation exhibits different behavior for 2-digit year interpretation compared to other platforms. The expected behavior should interpret 2-digit years 00-68 as 2000-2068 and 69-99 as 1969-...

Open Graph Description: Bug report Bug description: AIX's strptime implementation exhibits different behavior for 2-digit year interpretation compared to other platforms. The expected behavior should interpret 2-digit yea...

X Description: Bug report Bug description: AIX's strptime implementation exhibits different behavior for 2-digit year interpretation compared to other platforms. The expected behavior should interpret 2-digit...

Opengraph URL: https://github.com/python/cpython/issues/139624

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_date_locale2 fails on AIX","articleBody":"# Bug report\n\n### Bug description:\n\nAIX's `strptime` implementation exhibits different behavior for 2-digit year interpretation compared to other platforms. The expected behavior should interpret 2-digit years 00-68 as 2000-2068 and 69-99 as 1969-1999, but AIX appears to use different cutoff logic\n\n```python\n-bash-4.2$ ./python -m test test_strptime -m test_date_locale2 -v\n== CPython 3.15.0a0 (main, Oct 5 2025, 21:17:47) [GCC 8.3.0]\n== AIX-2-00FA9D314C00-powerpc-32bit big-endian\n== Python build: debug\n== cwd: /python/pdev/cpython-main/build/test_python_worker_5309142æ\n== CPU count: 16\n== encodings: locale=ISO8859-1 FS=utf-8\n== resources: all test resources are disabled, use -u option to unskip tests\n\nUsing random seed: 2760767720\n0:00:00 Run 1 test sequentially in a single process\n0:00:00 [1/1] test_strptime\ntest_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) ...\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='en_US') ... FAIL\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='fr_FR') ... skipped \"no locale 'fr_FR'\"\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='de_DE') ... skipped \"no locale 'de_DE'\"\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='ja_JP') ... skipped \"no locale 'ja_JP'\"\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='eu_ES') ... skipped \"no locale 'eu_ES'\"\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='ar_AE') ... skipped \"no locale 'ar_AE'\"\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='my_MM') ... skipped \"no locale 'my_MM'\"\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='shn_MM') ... skipped \"no locale 'shn_MM'\"\n  test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='lzh_TW') ... skipped \"no locale 'lzh_TW'\"\n\n======================================================================\nFAIL: test_date_locale2 (test.test_strptime.StrptimeTests.test_date_locale2) (locale='en_US')\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/python/pdev/cpython-main/Lib/test/support/__init__.py\", line 1045, in wrapper\n    func(self, *args, **kwargs)\n    ~~~~^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/python/pdev/cpython-main/Lib/test/test_strptime.py\", line 576, in test_date_locale2\n    self.roundtrip('%x', slice(0, 3), (1900, 1, 1, 0, 0, 0, 0, 1, 0))\n    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/python/pdev/cpython-main/Lib/test/test_strptime.py\", line 306, in roundtrip\n    self.assertEqual(strp_output[position], time_tuple[position],\n    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                    \"testing of %r format failed; %r -> %r != %r\" %\n                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                     (fmt, strf_output, strp_output[position],\n                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n                      time_tuple[position]))\n                      ^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: Tuples differ: (2000, 1, 1) != (1900, 1, 1)\n\nFirst differing element 0:\n2000\n1900\n\n- (2000, 1, 1)\n?  ^^\n\n+ (1900, 1, 1)\n?  ^^\n : testing of '%x' format failed; '01/01/00' -> (2000, 1, 1) != (1900, 1, 1)\n\n----------------------------------------------------------------------\nRan 1 test in 0.022s\n\nFAILED (failures=1, skipped=8)\ntest test_strptime failed\n0:00:00 [1/1/1] test_strptime failed (1 failure)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n    test_strptime\n\nTotal duration: 561 ms\nTotal tests: run=1 (filtered) failures=1 skipped=8\nTotal test files: run=1/1 (filtered) failed=1\nResult: FAILURE\n```\n\n### Environment\n- AIX Version: 7200-05-05-2245 (AIX 7.2 TL5 SP5)\n\nI think updating the test suite to skip problematic locales on AIX for the %x format test, similar to the existing Solaris(https://github.com/python/cpython/pull/125785) workaround, would be a good choice.\n\n\n### CPython versions tested on:\n\nCPython main branch, 3.15, 3.14, 3.13\n\n### Operating systems tested on:\n\nOther\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-139625\n* gh-139644\n* gh-139645\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/furkanonder","@type":"Person","name":"furkanonder"},"datePublished":"2025-10-05T19:12:54Z","url":"https://github.com/python/cpython/issues/139624"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c5c28bc8-3e37-35bd-417a-13b0e662cd1d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA5C8:240CD1:42A9FAD:549F511:6B022C43
html-safe-nonce553d7a92ef9c3ebf929e1b4f0595df3be76b8a06c7f9367f0ddde0f35ede0218
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUM4OjI0MENEMTo0MkE5RkFEOjU0OUY1MTE6NkIwMjJDNDMiLCJ2aXNpdG9yX2lkIjoiMTIxMzE4ODA5MTM0MDUwMzcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac24511608803e1891dba603ef8f19241658c24208424fe2cf0e87836a0ebb60bc
hovercard-subject-tagissue:3485082032
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/139624/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e159d1399c1c9c39cf2ca0360138cca2d6230e56447d26eb64b09fbbe53e12eb/python/cpython/issues/139624
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e159d1399c1c9c39cf2ca0360138cca2d6230e56447d26eb64b09fbbe53e12eb/python/cpython/issues/139624
og:image:altBug report Bug description: AIX's strptime implementation exhibits different behavior for 2-digit year interpretation compared to other platforms. The expected behavior should interpret 2-digit yea...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefurkanonder
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/139624#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F139624
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%2Fissues%2F139624
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/139624
Reloadhttps://github.com/python/cpython/issues/139624
Reloadhttps://github.com/python/cpython/issues/139624
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
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139624
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/139624
test_date_locale2 fails on AIXhttps://github.com/python/cpython/issues/139624#top
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
OS-unsupportedhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-unsupported%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/furkanonder
furkanonderhttps://github.com/furkanonder
on Oct 5, 2025https://github.com/python/cpython/issues/139624#issue-3485082032
#125785https://github.com/python/cpython/pull/125785
gh-139624: Skip problematic locales on AIX in test_date_locale2 #139625https://github.com/python/cpython/pull/139625
[3.14] gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625) #139644https://github.com/python/cpython/pull/139644
[3.13] gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625) #139645https://github.com/python/cpython/pull/139645
furkanonderhttps://github.com/furkanonder
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on Oct 5, 2025https://github.com/python/cpython/issues/139624#event-20102800573
furkanonderhttps://github.com/furkanonder
on Oct 5, 2025https://github.com/python/cpython/issues/139624#event-20102813055
Merge branch 'main' into pythongh-139624https://github.com/furkanonder/cpython/commit/4c3bddd78b6994e5279abe05dd758d8239975ac4
pythongh-139624https://github.com/python/cpython/issues/139624
4c3bdddhttps://github.com/furkanonder/cpython/commit/4c3bddd78b6994e5279abe05dd758d8239975ac4
StanFromIrelandhttps://github.com/StanFromIreland
OS-unsupportedhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-unsupported%22
on Oct 5, 2025https://github.com/python/cpython/issues/139624#event-20102950090
github-project-automationhttps://github.com/apps/github-project-automation
Unsupported platformshttps://github.com/orgs/python/projects/27
on Oct 5, 2025https://github.com/python/cpython/issues/139624#event-20102950476
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
on Oct 5, 2025https://github.com/python/cpython/issues/139624#issuecomment-3369290738
failing at configurehttps://buildbot.python.org/#/workers/26
encukouhttps://github.com/encukou
on Oct 6, 2025https://github.com/python/cpython/issues/139624#event-20110503654
gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-1…https://github.com/python/cpython/commit/6f3dae0dc5ccd47b2b8a6e052244353d8c37e59b
gh-139624https://github.com/python/cpython/issues/139624
GH-1…https://github.com/python/cpython/pull/139625
6f3dae0https://github.com/python/cpython/commit/6f3dae0dc5ccd47b2b8a6e052244353d8c37e59b
miss-islingtonhttps://github.com/miss-islington
on Oct 6, 2025https://github.com/python/cpython/issues/139624#event-20110505626
pythongh-139624: Skip problematic locales on AIX in test_date_locale2 (…https://github.com/miss-islington/cpython/commit/c7437435a2a1b6cfceb329fa241a238f20089765
pythongh-139624https://github.com/python/cpython/issues/139624
…https://github.com/python/cpython/pull/139625
c743743https://github.com/miss-islington/cpython/commit/c7437435a2a1b6cfceb329fa241a238f20089765
pythongh-139624: Skip problematic locales on AIX in test_date_locale2 (…https://github.com/miss-islington/cpython/commit/bad1026f37f801aa7ebd50f2ec39398ed04a5e6a
pythongh-139624https://github.com/python/cpython/issues/139624
…https://github.com/python/cpython/pull/139625
bad1026https://github.com/miss-islington/cpython/commit/bad1026f37f801aa7ebd50f2ec39398ed04a5e6a
serhiy-storchakahttps://github.com/serhiy-storchaka
on Oct 6, 2025https://github.com/python/cpython/issues/139624#event-20111904937
[3.13] gh-139624: Skip problematic locales on AIX in test_date_locale2 (https://github.com/python/cpython/commit/52c0738700d65f85b4a1930ca48cc9ed5ab3c41a
gh-139624https://github.com/python/cpython/issues/139624
52c0738https://github.com/python/cpython/commit/52c0738700d65f85b4a1930ca48cc9ed5ab3c41a
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 6, 2025https://github.com/python/cpython/issues/139624#event-20111931914
github-project-automationhttps://github.com/apps/github-project-automation
Unsupported platformshttps://github.com/orgs/python/projects/27
on Oct 6, 2025https://github.com/python/cpython/issues/139624
danigmhttps://github.com/danigm
on Oct 7, 2025https://github.com/python/cpython/issues/139624#event-20132739253
pythongh-139624: Skip problematic locales on AIX in test_date_locale2 (…https://github.com/openSUSE-Python/cpython/commit/e8e1f0447432be8c0f06b403b95d587bc7c8ed44
pythongh-139624https://github.com/python/cpython/issues/139624
…https://github.com/python/cpython/pull/139625
e8e1f04https://github.com/openSUSE-Python/cpython/commit/e8e1f0447432be8c0f06b403b95d587bc7c8ed44
encukouhttps://github.com/encukou
on Oct 7, 2025https://github.com/python/cpython/issues/139624#event-20146744505
[3.14] gh-139624: Skip problematic locales on AIX in test_date_locale2 (https://github.com/python/cpython/commit/98d33bf19c6b0829410e632f7477602b6859726e
gh-139624https://github.com/python/cpython/issues/139624
98d33bfhttps://github.com/python/cpython/commit/98d33bf19c6b0829410e632f7477602b6859726e
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/139624
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/139624
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
OS-unsupportedhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-unsupported%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
Unsupported platformshttps://github.com/orgs/python/projects/27
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.