[Python-modules-team] Bug#606528: sympy: please run tests at build time

Ondrej Certik ondrej at certik.cz
Thu Dec 9 23:26:46 UTC 2010


On Thu, Dec 9, 2010 at 3:23 PM, Ondrej Certik <ondrej at certik.cz> wrote:
> On Thu, Dec 9, 2010 at 2:53 PM, Jakub Wilk <jwilk at debian.org> wrote:
>> Source: sympy
>> Version: 0.6.7-1.1
>>
>> Sympy comes with a test suite, so it would be nice if it could be
>> run at build time, preferably with all supported Python versions.
>
> It takes several minutes to run. Are you sure it's a good idea? What
> happens if some little test fails?
> Is it better to have 99% working package, or not a package at all?

But I think at least the core tests should be run, it only takes 3s:

$ bin/test sympy/core/
============================= test process starts ==============================
executable:   /usr/bin/python  (2.6.5-final-0)

sympy/core/tests/test_arit.py[45] ...ff........................................
                                                                            [OK]
sympy/core/tests/test_assumptions.py[28] ....f.......................       [OK]
sympy/core/tests/test_basic.py[8] ........                                  [OK]
sympy/core/tests/test_cache.py[1] .                                         [OK]
sympy/core/tests/test_complex.py[12] ............                           [OK]
sympy/core/tests/test_containers.py[2] ..                                   [OK]
sympy/core/tests/test_count_ops.py[1] .                                     [OK]
sympy/core/tests/test_diff.py[5] .....                                      [OK]
sympy/core/tests/test_equal.py[5] .....                                     [OK]
sympy/core/tests/test_eval.py[8] .....f..                                   [OK]
sympy/core/tests/test_eval_power.py[11] ...........                         [OK]
sympy/core/tests/test_evalf.py[21] .....................                    [OK]
sympy/core/tests/test_expand.py[5] .....                                    [OK]
sympy/core/tests/test_expr.py[49] ..............................................
...                                                                         [OK]
sympy/core/tests/test_facts.py[11] ...........                              [OK]
sympy/core/tests/test_functions.py[30] .......ff.....................       [OK]
sympy/core/tests/test_logic.py[10] ..........                               [OK]
sympy/core/tests/test_match.py[26] ...f......................               [OK]
sympy/core/tests/test_multidimensional.py[4] ....                           [OK]
sympy/core/tests/test_numbers.py[37] .....................................  [OK]
sympy/core/tests/test_operations.py[4] ....                                 [OK]
sympy/core/tests/test_priority.py[5] .....                                  [OK]
sympy/core/tests/test_relational.py[7] .......                              [OK]
sympy/core/tests/test_sets.py[14] ..............                            [OK]
sympy/core/tests/test_subs.py[27] ...........................               [OK]
sympy/core/tests/test_symbol.py[7] .......                                  [OK]
sympy/core/tests/test_sympify.py[23] .......................                [OK]
sympy/core/tests/test_truediv.py[3] ...                                     [OK]
sympy/core/tests/test_var.py[4] ....                                        [OK]

======= tests finished: 406 passed, 7 expected to fail, in 2.95 seconds ========



And if all of them pass, then the package is usable. It would for
example catch the python2.7 problem.

Ondrej





More information about the Python-modules-team mailing list