Commit ea332e9
Skip the azuremanaged lazy-import test when the provider is absent
`test_importing_azuremanaged_client_does_not_import_worker` failed on all
five Python versions in the `run-tests` job of `.github/workflows/durabletask.yml`
with `ModuleNotFoundError: No module named 'durabletask.azuremanaged'`.
The cause is a missing package, not lazy initialization. That job installs
`requirements.txt`, `.[azure-blob-payloads]` and `aiohttp`, and never installs
`durabletask-azuremanaged` -- so the test's subprocess could never import the
provider there. It passes locally only because a development environment has
both distributions installed.
Guard the test with `pytest.importorskip("durabletask.azuremanaged")` so it
skips cleanly where the provider is not installed. The assertion itself is
unchanged, and the test still runs (and still has teeth) wherever the provider
is present. Widening the workflow's install scope would be a broader change
than this fix needs.
Verified by blocking the provider behind a `sys.meta_path` hook to simulate the
CI environment: 42 passed, 1 skipped without the provider, 43 passed with it.
Also rewrap the CHANGELOG entry to the 100-character md013 limit using
non-indented continuation lines. The file has 16 pre-existing md013 violations
on `main`; this keeps that count unchanged rather than adding to it.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b6ec6f9e-f919-4874-b146-fa764b5c56171 parent 89f56c1 commit ea332e9
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
0 commit comments