Skip to content

Remove stray sdmx_ml import from tpdb tests - #94

Merged
tefra merged 1 commit into
mainfrom
fix-tpdb-import
Oct 16, 2026
Merged

tefra merged 1 commit into
mainfrom
fix-tpdb-import

Conversation

@tefra

@tefra tefra commented Oct 16, 2026

Copy link
Copy Markdown
Owner

tpdb/test_bindings.py had a leftover from sdmx_ml.models import * from when the suite was added. The test uses nothing from it.

invoke all builds every suite in parallel, and each build starts with rm -rf {suite}/models. When tpdb test collection ran while sdmx_ml was regenerating, the import failed with ModuleNotFoundError: No module named 'sdmx_ml.models'.

Testing

  • With sdmx_ml/models moved away, pytest tpdb/ gives 254 passed.
  • invoke all: 20 passed, 0 failed, no output changes.

The tpdb tests never used sdmx_ml models. During invoke all, the sdmx_ml
build deletes and regenerates sdmx_ml/models in parallel, so tpdb test
collection failed with ModuleNotFoundError when it ran mid-rebuild.
@tefra
tefra merged commit 8672da0 into main Oct 16, 2026
100 checks passed
@tefra
tefra deleted the fix-tpdb-import branch October 16, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant