mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #446] Fix test helper discovery in pytest and sanitizer runner #452
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#452
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/446
Author: @lucifer1004
Created: 9/14/2026
Status: 🔄 Open
Base:
main← Head:fix/test-helper-discovery📝 Commits (2)
4068492fix(testing): respect test discovery opt-out markers5b1f8e5test: keep discovery fix focused on pytest convention📊 Changes
2 files changed (+4 additions, -1 deletions)
View changed files
📝
deep_gemm/testing/utils.py(+3 -0)📝
tests/test_sanitizer.py(+1 -1)📄 Description
Summary
test_filterdecorator factory with pytest's existing__test__ = Falseopt-out convention.test_filter.Why
Running an entire test module through pytest can collect the imported
test_filter(condition)helper and fail withfixture 'condition' not found. Direct script execution avoids this, while the sanitizer runner currently has a name-specific exclusion. The shared marker handles aliases and explicit opt-outs without accidentally excluding real tests such astest_filter_behavior.The marker applies only to the decorator factory. Decorated test functions remain discoverable, and existing condition-based execution/filtering behavior is unchanged.
Validation
Used a temporary CPU-only verification harness (not included in this PR):
78b6900.getattr(obj, "__test__", True)directly.git diff --check: passed.No GPU kernels, actual Compute Sanitizer execution, or native rebuild were required. This small PR is independent of the SM120/API migration work.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.