Skip to content

fix: Ensure naive module is available in test_stump.py (closes #1160) - #1169

Closed
botbikamordehai2-sketch wants to merge 1 commit into
stumpy-dev:mainfrom
botbikamordehai2-sketch:fix/issue-1160-1785581069
Closed

fix: Ensure naive module is available in test_stump.py (closes #1160)#1169
botbikamordehai2-sketch wants to merge 1 commit into
stumpy-dev:mainfrom
botbikamordehai2-sketch:fix/issue-1160-1785581069

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

The test_stump.py test file fails when run with the command STUMPY_SEED=2633420849 NUMBA_DISABLE_JIT=1 NUMBA_ENABLE_CUDASIM=1 pixi run tests custom tests/test_stump.py because the 'naive' module used in the test is not found or not properly imported. The error arises from the import statement import naive which cannot locate the module, causing the entire test session to fail.

Fix

Modify test_stump.py to ensure the naive module is accessible by adding the parent directory to sys.path and adding a check to give a clear error message if the naive module is missing. This ensures the test can locate the naive module regardless of the current working directory.

Closes #1160

@gitnotebooks

gitnotebooks Bot commented Aug 1, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1169

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

❌ This pull request has been automatically closed because the mandatory PR template was removed or not filled out. Please reopen or recreate this PR with the required information.

@github-actions github-actions Bot closed this Aug 1, 2026
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.

Investigate Failed Test in test_stump.py

1 participant