Title: Document some minor subtleties in test_util.py by EliahKagan · Pull Request #1749 · gitpython-developers/GitPython · GitHub
Open Graph Title: Document some minor subtleties in test_util.py by EliahKagan · Pull Request #1749 · gitpython-developers/GitPython
X Title: Document some minor subtleties in test_util.py by EliahKagan · Pull Request #1749 · gitpython-developers/GitPython
Description: These are a couple of small comment/docstring tweaks in test_util.py that didn't quite make it into #1739: Some of the tests mock chmod functions to better simulate the inability to change permissions on a file, but they don't mock the lchmod variants, at least one of which (the pathlib.Path method) can exists even when calling it is guaranteed to fail. This comments to explain why they are not mocked (it is so we observe such failures). There are a few collections of parameter sets used in the cygpath tests, some of which existed before any recent changes, and another of which was introduced in #1729 to help with precise xfail markings. This adds "docstrings" to those that didn't have them, and converts the comment on the one that did into such a docstring. The impact is minor, but I think this helps with clarity a little bit. The reason I deferred these changes is that I originally had begun by mocking out the lchmod functions. While writing the commit message for that, I realized my reasoning wasn't very good, because it is more important that any exceptions due to platform incompatibility be observed and cause the test to fail, in the event that those functions are ever used (directly or indirectly) in the code under test. That original commit is in the history--it's the first commit here--but the test code changes are undone subsequently. I considered just dropping the commit, but it seems to me that having it in the history may make things a little clearer. (However, I can rebase it out if desired.)
Open Graph Description: These are a couple of small comment/docstring tweaks in test_util.py that didn't quite make it into #1739: Some of the tests mock chmod functions to better simulate the inability to change per...
X Description: These are a couple of small comment/docstring tweaks in test_util.py that didn't quite make it into #1739: Some of the tests mock chmod functions to better simulate the inability to change...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1749
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:de63925d-d9bc-ae49-3719-9fd59f7ddc35 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | ECB0:22117D:5ECB44:83DD53:6968CC7D |
| html-safe-nonce | 2b026d8852a95684f291052ea2ffdd2372ae0b3c6000fac1248f0e7cec992fb5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0IwOjIyMTE3RDo1RUNCNDQ6ODNERDUzOjY5NjhDQzdEIiwidmlzaXRvcl9pZCI6IjEwNDczOTU4OTUwNzkzOTAzMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 58dd6a98833d25be55af28b7ec6bbd9e14229f68d433dad69a2a94feb58e3cf5 |
| hovercard-subject-tag | pull_request:1621146395 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/gitpython-developers/GitPython/pull/1749/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| og:image:alt | These are a couple of small comment/docstring tweaks in test_util.py that didn't quite make it into #1739: Some of the tests mock chmod functions to better simulate the inability to change per... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | af2d7af0cc84117fa10bf36808605ef68a335c9d8a804b9cdac55f8d77230b00 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cc844ab6ee0198cc2e2c142dcb8a5c2a61d48743 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width