Updates:
        Status: Fixed

Comment #2 on issue 1205 by asmeurer: sympy's test hides xpassing tests
http://code.google.com/p/sympy/issues/detail?id=1205

This was fixed with

commit 0f03e5ea57de3828726aeb5e822d274b92e0535b
Author: Aaron Meurer <[email protected]>
Date:   Sat May 15 17:00:16 2010 -0600

    Wrap decorators in functools.wraps

    Now the decorated functions keep their original name.  For example,
    help(expand) shows "Help on function expand in module
    sympy.core.function:" instead of "Help on function expand in module
    sympy.core.multidimensional:" (expand is decorated with @vectorize).

    Also, XFAIL tests show their name when running ./bin/test -v, for
    example:

    Before:
    $./bin/test sympy/solvers/tests/test_ode.py -v
============================= test process starts ==============================
    executable:
    /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/
    Contents/MacOS/Python  (2.6.5-final-0)

    sympy/solvers/tests/test_ode.py[37]
    test_checkodesol ok
    test_dsolve_options ok
    test_classify_ode ok
    test_ode_order ok
    func_wrapper f
    func_wrapper f
    func_wrapper f
    func_wrapper f
    func_wrapper X
    func_wrapper s
    ...

    After:

    $./bin/test sympy/solvers/tests/test_ode.py  -v
============================= test process starts ==============================
    executable:
    /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/
    Contents/MacOS/Python  (2.6.5-final-0)

    sympy/solvers/tests/test_ode.py[37]
    test_checkodesol ok
    test_dsolve_options ok
    test_classify_ode ok
    test_nth_linear_constant_coeff_homogeneous_RootOf_sol f
    test_nth_linear_constant_coeff_undetermined_coefficients_imaginary_exp f
    test_separable_1_5_checkodesol f
    test_1st_homogeneous_coeff_ode2_eq3sol f
    test_Liouville_ODE_xfail X
    test_1st_homogeneous_coeff_ode1_sol_fail f
    test_nth_linear_constant_coeff_variation_of_parameters_simplify_False f
    test_1st_homogeneous_coeff_ode4_explicit f
    test_1st_exact2 s
    test_ode_order ok

    help(expand) still shows expand(*args, **kwargs) instead of the correct
    expand(e, deep=True, power_base=True, power_exp=True, mul=True,
    log=True, multinomial=True, basic=True, **hints), because fixing that
    requires using the decorators function from the decorators module, which
    doesn't seem to support class decorators like @vectorize (I couldn't
    figure it out).

See also http://groups.google.com/group/sympy/browse_thread/thread/bfc8509a39e1c296/427bbd6c314231a5.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to