Repository navigation
Run the fork's tests in CI, and make them pass - #10
Merged
Merged
Conversation
aiohttp raises asyncio.TimeoutError, which is the builtin TimeoutError only from 3.11. On 3.10 the handler never matched, so a request that outran the clock arrived as the bare exception this was written to replace. Found by the fork's tests, the first time they ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fork's workflows had never run (Actions starts disabled on a fork), so these only ever ran locally: - Import test_device_identity as a sibling module, like the other helpers. `tests` is not a package and is not on the path under `uv run pytest`. - Compare the TLS context with a default one instead of counting anchors. Where the platform store is a directory, OpenSSL reads it lazily and get_ca_certs() lists none of it, so a correct context counted 1 on Linux. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- force-exclude, so ruff honours `exclude = ["tests/", ...]` for the file names pre-commit passes; without it every staged test file was linted. - ruff format over the ten library files that had drifted. Formatting only. - account.py: the curl reproduction in a comment read as commented-out code; the same in prose. - examples/sweep_keychain_for_bytes.py: contextlib.suppress for the base64 probe, and noqa for the untyped account and peer and the inspector's size. - Tests, for basedpyright: @OverRide on the fake Anisette providers, .get() for NotRequired keys, a None check on the SRP session key, the DerElement return type, and PinnedRoots.load named directly. The files whose doubles stand in for real classes turn off reportArgumentType and reportAttributeAccessIssue, with the reason, instead of a cast at every injection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fork's workflows had never run: Actions starts disabled on a fork, so no PR or push here was ever tested. "Run unit tests" and "Pre-commit" are now enabled; "Upload Python Package" and "Deploy documentation" (upstream's PyPI and docs releases) are disabled. The first run on
mainfailed 8 of 885 tests on 3.10 (fail-fast cancelled the other versions) and about 85 basedpyright errors in pre-commit. This PR fixes those.findmy/util/http.py: catchasyncio.TimeoutErroras well asTimeoutError. They are the same class only from 3.11, so on 3.10 a timed-out request was never described. A library bug, not a test bug.tests/: importtest_device_identityas a sibling module (testsis not a package underuv run pytest). Compare the TLS context with a default context, because on Linux the platform store is a directory thatget_ca_certs()does not list.pyproject.toml:force-exclude = true. pre-commit passes file names, and ruff lints a named file even whenexcludelists it.ruff formatover ten library files that had drifted (formatting only). The curl reproduction inaccount.pyis rewritten in prose, since ruff flags it as commented-out code. Lint fixes andnoqas inexamples/sweep_keychain_for_bytes.py.@overrideon the fake providers,.get()forNotRequiredkeys, aNonecheck, a return type. Files whose doubles stand in for real classes turn offreportArgumentTypeandreportAttributeAccessIssueat the top, with the reason.Local: 885 pass on 3.10 and 3.14 (macOS) and 3.10 (Linux, Docker);
ruff check,ruff format --checkandbasedpyrightclean over every tracked file. This is also the first PR since the workflows were enabled, so its checks show whetherpull_requesttriggers them.🤖 Generated with Claude Code