René's URL Explorer Experiment


Title: ``test_os.test_attributes()`` fails on Windows · Issue #126253 · python/cpython · GitHub

Open Graph Title: ``test_os.test_attributes()`` fails on Windows · Issue #126253 · python/cpython

X Title: ``test_os.test_attributes()`` fails on Windows · Issue #126253 · python/cpython

Description: Bug report Bug description: ./python -m test -v test_os ====================================================================== FAIL: test_attributes (test.test_os.TestScandir.test_attributes) ---------------------------------------------...

Open Graph Description: Bug report Bug description: ./python -m test -v test_os ====================================================================== FAIL: test_attributes (test.test_os.TestScandir.test_attributes) -----...

X Description: Bug report Bug description: ./python -m test -v test_os ====================================================================== FAIL: test_attributes (test.test_os.TestScandir.test_attributes) -----...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"``test_os.test_attributes()`` fails on Windows","articleBody":"# Bug report\n\n### Bug description:\n\n```python\n./python -m test -v test_os\n======================================================================\nFAIL: test_attributes (test.test_os.TestScandir.test_attributes)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"C:\\Users\\eclips4\\programming\\cpython\\Lib\\test\\test_os.py\", line 5040, in test_attributes\n    self.check_entry(entry, 'dir', True, False, False)\n    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"C:\\Users\\eclips4\\programming\\cpython\\Lib\\test\\test_os.py\", line 5008, in check_entry\n    self.assert_stat_equal(entry.stat(),\n    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^\n                           entry_stat,\n                           ^^^^^^^^^^^\n                           os.name == 'nt' and not is_symlink)\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"C:\\Users\\eclips4\\programming\\cpython\\Lib\\test\\test_os.py\", line 4967, in assert_stat_equal\n    self.assertEqual(getattr(stat1, attr),\n    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^\n                     getattr(stat2, attr),\n                     ^^^^^^^^^^^^^^^^^^^^^\n                     (stat1, stat2, attr))\n                     ^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 16 != 268435472 : (os.stat_result(st_mode=16895, st_ino=0, st_dev=0, st_nlink=0, st_uid=0, st_gid=0, st_size=0, st_atime=1730398311, st_mtime=1730398311, st_ctime=1730398311), os.stat_result(st_mode=16895, st_ino=5066549580979864, st_dev=2642700522657803134, st_nlink=1, st_uid=0, st_gid=0, st_size=0, st_atime=1730398311, st_mtime=1730398311, st_ctime=1730398311), 'st_file_attributes')\n\n----------------------------------------------------------------------\nRan 367 tests in 16.254s\n\nFAILED (failures=1, skipped=146)\ntest test_os failed\ntest_os failed (1 failure)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n    test_os\n\nTotal duration: 21.1 sec\nTotal tests: run=367 failures=1 skipped=146\nTotal test files: run=1/1 failed=1\nResult: FAILURE\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-156305\n* gh-161899\n* gh-161900\n* gh-162043\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Eclips4","@type":"Person","name":"Eclips4"},"datePublished":"2024-10-31T18:15:11Z","url":"https://github.com/python/cpython/issues/126253"}

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:8401f195-1e9b-02e4-03b8-dce6bc87b369
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9ED6:1D86C4:3E28C5F:4EF37F7:6B02109A
html-safe-nonced2065b7b16c3d01e9e5cf45ce922dd84fa4f10433a7d59bf51c0756c3b80efef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQ2OjFEODZDNDozRTI4QzVGOjRFRjM3Rjc6NkIwMjEwOUEiLCJ2aXNpdG9yX2lkIjoiNTY0NTk3Mjg5OTIyOTkwMjM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf0f769ebf3a4c67db95297245c709a018247cca4b489995c259dd47d271c5c4f
hovercard-subject-tagissue:2627534756
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/126253/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0b8f519fbcd76aab5b82e7fe265bc232a2800b5f4251f6e77155aa9ebe7d0127/python/cpython/issues/126253
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b8f519fbcd76aab5b82e7fe265bc232a2800b5f4251f6e77155aa9ebe7d0127/python/cpython/issues/126253
og:image:altBug report Bug description: ./python -m test -v test_os ====================================================================== FAIL: test_attributes (test.test_os.TestScandir.test_attributes) -----...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEclips4
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/126253#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F126253
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%2F126253
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/126253
Reloadhttps://github.com/python/cpython/issues/126253
Reloadhttps://github.com/python/cpython/issues/126253
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/126253
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/126253
test_os.test_attributes() fails on Windowshttps://github.com/python/cpython/issues/126253#top
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%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/Eclips4
Eclips4https://github.com/Eclips4
on Oct 31, 2024https://github.com/python/cpython/issues/126253#issue-2627534756
gh-126253: Ignore unknown Windows file attribute bits in scandir test #156305https://github.com/python/cpython/pull/156305
[3.15] gh-126253: Ignore unknown Windows file attributes in test_os (GH-156305) #161899https://github.com/python/cpython/pull/161899
[3.14] gh-126253: Ignore unknown Windows file attributes in test_os (GH-156305) #161900https://github.com/python/cpython/pull/161900
[3.13] gh-126253: Ignore unknown Windows file attributes in test_os (GH-156305) #162043https://github.com/python/cpython/pull/162043
Eclips4https://github.com/Eclips4
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
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%22
on Oct 31, 2024https://github.com/python/cpython/issues/126253#event-15043726067
https://github.com/zooba
zoobahttps://github.com/zooba
on Oct 31, 2024https://github.com/python/cpython/issues/126253#issuecomment-2450902491
https://github.com/Eclips4
Eclips4https://github.com/Eclips4
on Nov 1, 2024https://github.com/python/cpython/issues/126253#issuecomment-2451210749
https://github.com/zooba
zoobahttps://github.com/zooba
on Nov 11, 2024https://github.com/python/cpython/issues/126253#issuecomment-2468742124
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Mar 24, 2026https://github.com/python/cpython/issues/126253#issuecomment-4114568247
vstinnerhttps://github.com/vstinner
on Mar 24, 2026https://github.com/python/cpython/issues/126253#event-23833772666
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Mar 24, 2026https://github.com/python/cpython/issues/126253#issuecomment-4114635869
http://ftp.kolibrios.org/users/Asper/docs/NTFS/ntfsdoc.htmlhttp://ftp.kolibrios.org/users/Asper/docs/NTFS/ntfsdoc.html
https://wiki.osdev.org/User:Tudoros1/FileSystems/NTFShttps://wiki.osdev.org/User:Tudoros1/FileSystems/NTFS
https://us.mrtlab.com/filesystem/NTFS-standard-two_3.htmlhttps://us.mrtlab.com/filesystem/NTFS-standard-two_3.html
File Attribute Constants documentationhttps://learn.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants
Wanbinyuhttps://github.com/Wanbinyu
on Sep 16, 2026https://github.com/python/cpython/issues/126253#event-31253043445
pythongh-126253: Add a Tests NEWS entryhttps://github.com/Wanbinyu/cpython/commit/4fcb07ecc7a646831073e429c0291e6dbd4db022
pythongh-126253https://github.com/python/cpython/issues/126253
4fcb07ehttps://github.com/Wanbinyu/cpython/commit/4fcb07ecc7a646831073e429c0291e6dbd4db022
hugovkhttps://github.com/hugovk
on Nov 4, 2026https://github.com/python/cpython/issues/126253#event-35138514210
Merge branch 'main' into pythongh-126253-test-os-file-attributeshttps://github.com/Wanbinyu/cpython/commit/744f99854b3eb88b225b6c9bc5bdc72d38939e63
pythongh-126253https://github.com/python/cpython/issues/126253
744f998https://github.com/Wanbinyu/cpython/commit/744f99854b3eb88b225b6c9bc5bdc72d38939e63
https://github.com/hugovk
hugovkhttps://github.com/hugovk
on Nov 4, 2026https://github.com/python/cpython/issues/126253#issuecomment-6633983779
https://buildbot.python.org/#/builders/729/builds/11792https://buildbot.python.org/#/builders/729/builds/11792
https://buildbot.python.org/#/builders/730/builds/14943https://buildbot.python.org/#/builders/730/builds/14943
@zwarehttps://github.com/zware
#156305https://github.com/python/cpython/pull/156305
vstinnerhttps://github.com/vstinner
on Nov 12, 2026https://github.com/python/cpython/issues/126253#event-35946888878
gh-126253: Ignore unknown Windows file attributes in test_os (#156305)https://github.com/python/cpython/commit/20876589722925438ed2988c3f2a9d8869b20e9e
gh-126253https://github.com/python/cpython/issues/126253
#156305https://github.com/python/cpython/pull/156305
2087658https://github.com/python/cpython/commit/20876589722925438ed2988c3f2a9d8869b20e9e
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 12, 2026https://github.com/python/cpython/issues/126253#event-35947551655
vstinnerhttps://github.com/vstinner
on Nov 12, 2026https://github.com/python/cpython/issues/126253#event-35950686982
[3.14] gh-126253: Ignore unknown Windows file attributes in test_os (G…https://github.com/python/cpython/commit/ae91911833552a32cc5455a08f3bd80cc07a3d83
gh-126253https://github.com/python/cpython/issues/126253
G…https://github.com/python/cpython/pull/156305
ae91911https://github.com/python/cpython/commit/ae91911833552a32cc5455a08f3bd80cc07a3d83
[3.15] gh-126253: Ignore unknown Windows file attributes in test_os (G…https://github.com/python/cpython/commit/ac8759f5549c4d69aab7bdaf26a1d51a2443d1f6
gh-126253https://github.com/python/cpython/issues/126253
G…https://github.com/python/cpython/pull/156305
ac8759fhttps://github.com/python/cpython/commit/ac8759f5549c4d69aab7bdaf26a1d51a2443d1f6
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/126253
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/126253
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%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
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.