Commit e92b489
ENH: testing.lazy_xp_function: method, classmethod, staticmethod inheritance support (#582)
* ENH: Add better lazy_xp_function support for class methods
* TST: test that lazy_xp_function can handle inherited methods
* MAINT: Fix typing issues
* ENH: make patch_lazy_xp_functions check classes within modules
* TST: Add test to lazy_xp_function works for class methods
* Update src/array_api_extra/testing.py
Co-authored-by: Guido Imperiale <[email protected]>
* Apply suggestions from code review
Co-authored-by: Guido Imperiale <[email protected]>
* TST: make test laxy xp classes actually test function is wrapped
* TST: Add appropriate skips for lazy xp function classes test
* TST: Ensure that classmethods and staticmethods stay those things
* TST: Add test that lazy_xp_function preserves staticmethod
* TST: Add test that static methods actually get wrapped
* MAINT: fix monkeypatching of staticmethods and classmethods
* TST: Make sure test_static_tests_wrapped doesn't fail
* MAINT: re-enable monkeypatch circumvention
* TST: add test that monkeypatching can be circumvented
* MAINT: simplify check that target owns method
* add scipy to test deps for coverage
* TST: test that classmethods get wrapped
* MAINT: make sure classmethods get wrapped
---------
Co-authored-by: Guido Imperiale <[email protected]>
Co-authored-by: Lucas Colley <[email protected]>1 parent 755fea6 commit e92b489
File tree
4 files changed
+548
-32
lines changed- src/array_api_extra
- tests
4 files changed
+548
-32
lines changed
0 commit comments