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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8401f195-1e9b-02e4-03b8-dce6bc87b369 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9ED6:1D86C4:3E28C5F:4EF37F7:6B02109A |
| html-safe-nonce | d2065b7b16c3d01e9e5cf45ce922dd84fa4f10433a7d59bf51c0756c3b80efef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQ2OjFEODZDNDozRTI4QzVGOjRFRjM3Rjc6NkIwMjEwOUEiLCJ2aXNpdG9yX2lkIjoiNTY0NTk3Mjg5OTIyOTkwMjM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f0f769ebf3a4c67db95297245c709a018247cca4b489995c259dd47d271c5c4f |
| hovercard-subject-tag | issue:2627534756 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/126253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b8f519fbcd76aab5b82e7fe265bc232a2800b5f4251f6e77155aa9ebe7d0127/python/cpython/issues/126253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b8f519fbcd76aab5b82e7fe265bc232a2800b5f4251f6e77155aa9ebe7d0127/python/cpython/issues/126253 |
| og:image:alt | Bug report Bug description: ./python -m test -v test_os ====================================================================== FAIL: test_attributes (test.test_os.TestScandir.test_attributes) -----... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eclips4 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width