Skip to content

ENH: lazy_xp_function namespaces support #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

crusaderky
Copy link
Contributor

@crusaderky crusaderky commented Mar 14, 2025

Working in scipy I realized that forcing the developer who writes the tests to import <names> from <module> can be extremely cumbersome - see for example scipy.stats.tests.test_stats.

This PR allows simply calling

import <module>
lazy_xp_modules = [<module>]

def test_<funcname>(xp):
    <module>.<funcname>(...)

@crusaderky
Copy link
Contributor Author

@lucascolley ready for review and merge

Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @crusaderky, LGTM!!

@lucascolley lucascolley added this to the 0.7.0 milestone Mar 15, 2025
@crusaderky crusaderky force-pushed the lazy_xp_modules branch 2 times, most recently from 55c7585 to 7e35407 Compare March 17, 2025 15:34
@lucascolley lucascolley merged commit ce7342e into data-apis:main Mar 17, 2025
10 checks passed
@crusaderky crusaderky deleted the lazy_xp_modules branch March 17, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants