Skip to content

MNT: restore missing __init__.py from tests module - #356

Merged
tacaswell merged 2 commits into
bluesky:mainfrom
tacaswell:fix/missing_init
Jul 25, 2025
Merged

tacaswell merged 2 commits into
bluesky:mainfrom
tacaswell:fix/missing_init

Conversation

@tacaswell

Copy link
Copy Markdown
Contributor

This is required to run the tests on the installed package (which we do in the conda-forge recipe)

https://github.com/conda-forge/event-model-feedstock/pull/55/checks?check_run_id=43932583734 is failing with

+ pytest --pyargs event_model.tests
============================= test session starts ==============================
platform linux -- Python 3.9.23, pytest-8.4.0, pluggy-1.6.0
rootdir: $SRC_DIR
collected 0 items

============================ no tests ran in 0.13s =============================
ERROR: module or package not found: event_model.tests (missing __init__.py?)

WARNING: Tests failed for event-model-1.23-pyhd8ed1ab_0.conda - moving package to /home/conda/feedstock_root/build_artifacts/broken
Traceback (most recent call last):
  File "/opt/conda/lib/python3.12/site-packages/conda_build/build.py", line 3492, in test
    utils.check_call_env(
  File "/opt/conda/lib/python3.12/site-packages/conda_build/utils.py", line 411, in check_call_env
    return _func_defaulting_env_to_os_environ("call", *popenargs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.12/site-packages/conda_build/utils.py", line 387, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-o', 'errexit', '/home/conda/feedstock_root/build_artifacts/event-model_1749685071328/test_tmp/conda_test_runner.sh']' returned non-zero exit status 4.

During handling of the above exception, another exception occurred:

This got dropped in #343 but I do not think it was intentional. On CI we run tests in-tree so we don't see this problem.

This is required to run the tests on the installed package (which we do in the
conda-forge recipe)
@tacaswell
tacaswell merged commit 126c0ea into bluesky:main Jul 25, 2025
@tacaswell
tacaswell deleted the fix/missing_init branch July 25, 2025 13:26
tacaswell added a commit to regro-cf-autotick-bot/event-model-feedstock that referenced this pull request Jul 25, 2025
Also fixed upstream in bluesky/event-model#356

This will be dropped with 1.24
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.

2 participants