test_args in PR

28 views
Skip to first unread message

Francesco Bonazzi

unread,
Nov 29, 2015, 8:24:53 AM11/29/15
to sympy
In the PR:

https://github.com/sympy/sympy/pull/10180/

There is a test failure in test_args that I cannot reproduce on my computer.

Output is:

________________________________________________________________________________

sympy/core/tests/test_args.py:test_sympy__tensor__array__dense_ndim_array__ImmutableDenseNDimArray

File "/home/travis/virtualenv/pypy-2.5.0/site-packages/sympy-0.7.7.dev0-py2.7.egg/sympy/core/tests/test_args.py", line 3191, in test_sympy__tensor__array__dense_ndim_array__ImmutableDenseNDimArray

from sympy.tensor.array.dense_ndim_array import ImmutableDenseNDimArray

ImportError: No module named sympy.tensor.array

________________________________________________________________________________

sympy/core/tests/test_args.py:test_sympy__tensor__array__sparse_ndim_array__ImmutableSparseNDimArray

File "/home/travis/virtualenv/pypy-2.5.0/site-packages/sympy-0.7.7.dev0-py2.7.egg/sympy/core/tests/test_args.py", line 3197, in test_sympy__tensor__array__sparse_ndim_array__ImmutableSparseNDimArray

from sympy.tensor.array.sparse_ndim_array import ImmutableSparseNDimArray

ImportError: No module named sympy.tensor.array



This is the case for PyPy, but it's the same with all supported versions of CPython.

On my computer, these tests pass.

Is there a bug or am I missing something?

The code of the tests I added is here:
https://github.com/Upabjojr/sympy/commit/bb88b9178e779efeb1cca61042124109940a25db#diff-ab4b280569cc3f8c86869046caf1e733R3187

Isuru Fernando

unread,
Nov 29, 2015, 10:21:15 AM11/29/15
to sy...@googlegroups.com, franz....@gmail.com
Hi,

Test logs show that sympy.tensor.array module is not getting installed. https://travis-ci.org/sympy/sympy/jobs/93753616#L713

You have to add it to the modules list in setup.py for the files to get installed.

Isuru Fernando


--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/8dc77738-0ff8-4dc4-916d-0f5654bd771b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages