Status: Accepted
Owner: asmeurer
Labels: Type-Enhancement Priority-Medium Testing
New issue 2517 by asmeurer: Decorator for requiring modules in tests
http://code.google.com/p/sympy/issues/detail?id=2517
From
https://github.com/asmeurer/sympy/commit/b1e10b0e0b85a5a8d92441040819ad05eb20ed05#commitcomment-445587
It might be convenient to have a decorator like
@require(np, message="numpy not installed or Python too old.")
@require(scipy, message="scipy not installed.")
def test_scalar_scipy_sparse():
[…]
That handled the logic of skipping a test if the given libraries are not
installed.
Also, should skip() be a decorator?
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.