Skip to content
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

testing runtests on scipy. #17

Open
rainwoodman opened this issue Aug 30, 2017 · 0 comments
Open

testing runtests on scipy. #17

rainwoodman opened this issue Aug 30, 2017 · 0 comments

Comments

@rainwoodman
Copy link
Member

After the switch to pytests, runtests works perfect on scipy. Here is a result on a recent scipy master:

../testenv/lib/python3.5/site-packages/scipy/stats/tests/test_stats.py ...
../testenv/lib/python3.5/site-packages/scipy/signal/tests/test_cont2discrete.py .
../testenv/lib/python3.5/site-packages/scipy/ndimage/tests/test_ndimage.py .....
../testenv/lib/python3.5/site-packages/scipy/ndimage/tests/test_regression.py .
../testenv/lib/python3.5/site-packages/scipy/ndimage/tests/test_ndimage.py ..
../testenv/lib/python3.5/site-packages/scipy/stats/tests/test_mstats_basic.py ..
../testenv/lib/python3.5/site-packages/scipy/stats/tests/test_stats.py ...
../testenv/lib/python3.5/site-packages/scipy/integrate/tests/test_integrate.py .

==================================================================== FAILURES =====================================================================
___________________________________________________________________ test_m_gt_n ___________________________________________________________________

    def test_m_gt_n():
        m, n = 20, 10
        A0 = np.random.rand(m, n)
        b0 = np.random.rand(m)
        x = np.linalg.solve(A0[:n, :], b0[:n])
        b0[n:] = A0[n:, :].dot(x)
        A1, b1, status, message = _remove_redundancy(A0, b0)
>       assert_equal(status, 0)
E       AssertionError: 
E       Items are not equal:
E        ACTUAL: 2
E        DESIRED: 0

A0         = array([[ 0.24297605,  0.17140034,  0.47149368,  0.06648691,  0.02579971,
         0.19907105,  0.21822714,  0.72560196...6688,  0.39023403,  0.44435329,  0.83206927,
         0.32256582,  0.7784098 ,  0.82310553,  0.67136597,  0.35044346]])
A1         = array([[ 0.04532157,  0.27156247,  0.96293061,  0.21386475,  0.55672186,
         0.75980493,  0.3659801 ,  0.66733478...6688,  0.39023403,  0.44435329,  0.83206927,
         0.32256582,  0.7784098 ,  0.82310553,  0.67136597,  0.35044346]])
b0         = array([  8.95969352e-02,   7.72259379e-01,   3.65285625e-01,
         2.40855892e-01,   6.44855340e-01,   9.60533893e-....36451428e+01,
        -9.06567384e+01,   4.81493015e+01,  -8.09728492e+01,
        -5.51290917e+00,  -6.56066155e+01])
b1         = array([   0.24085589,    0.64485534,    0.96053389,    0.54116465,
          0.2661602 ,    0.5552781 ,    0.33257113,...  -1.83978221,  -23.64514282,
        -90.65673839,   48.14930153,  -80.97284915,   -5.51290917,
        -65.60661546])
m          = 20
message    = 'There is a linear combination of rows of A_eq that results in zero, suggesting a redundant constraint. However the same linear combination of b_eq is nonzero, suggesting that the constraints conflict and the problem is infeasible.'
n          = 10
status     = 2
x          = array([   4.86326418,    4.91417184,  -60.36820093,  -27.538317  ,
        -94.60761231,  -37.46459654,  -43.06280074,   29.2083314 ,
         31.15406987,  130.43177028])

../testenv/lib/python3.5/site-packages/scipy/optimize/tests/test__remove_redundancy.py:114: AssertionError
================================= 1 failed, 12608 passed, 1347 skipped, 123 xfailed, 5 xpassed in 739.08 seconds =========
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant