[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python module for NLP software stack (Was: Test error in python-cytoolz)



Hi Andreas,

You pointed out that the test failure is specific to python 3.7, then
the solution is clear: either wait for upstream to port it to newer
python 3.7, or port it by ourselves.

The porting work is now inevitable.

On Mon, Dec 03, 2018 at 01:57:07PM +0100, Andreas Tille wrote:
> Hi,
> 
> since NLP is also a topic on Debian Science and I did not got any help
> on Debian Python list yet, I take the freedom to forward my mail here.
> 
> Any idea how to deal with this?
> 
> Kind regards
> 
>        Andreas.
> 
> ----- Forwarded message from Andreas Tille <andreas@an3as.eu> -----
> 
> Date: Fri, 30 Nov 2018 14:28:32 +0100
> From: Andreas Tille <andreas@an3as.eu>
> To: debian-python@lists.debian.org, Mo Zhou <cdluminate@gmail.com>
> Subject: Test error in python-cytoolz
> 
> Hi,
> 
> Lumin (in CC - thanks a lot for your preparation) has prepared some
> Python packages that are needed to package some NLP tools which I would
> like to maintain.  Unfortunately I get a test suite error in
> python-cytoolz[1]:
> 
> ...
> ============================= test session starts ==============================
> platform linux -- Python 3.7.1, pytest-3.10.1, py-1.7.0, pluggy-0.8.0
> rootdir: /build/python-cytoolz-0.9.0.1, inifile:
> collected 190 items
> 
> cytoolz/tests/test_compatibility.py ..                                   [  1%]
> cytoolz/tests/test_curried.py ..........                                 [  6%]
> cytoolz/tests/test_curried_toolzlike.py ...                              [  7%]
> cytoolz/tests/test_dev_skip_test.py ..                                   [  8%]
> cytoolz/tests/test_dicttoolz.py ........................................ [ 30%]
> .....                                                                    [ 32%]
> cytoolz/tests/test_docstrings.py ..                                      [ 33%]
> cytoolz/tests/test_doctests.py .                                         [ 34%]
> cytoolz/tests/test_embedded_sigs.py ..                                   [ 35%]
> cytoolz/tests/test_functoolz.py ....................................     [ 54%]
> cytoolz/tests/test_inspect_args.py ..............F..                     [ 63%]
> cytoolz/tests/test_itertoolz.py ........................................ [ 84%]
> .........                                                                [ 88%]
> cytoolz/tests/test_none_safe.py ....                                     [ 91%]
> cytoolz/tests/test_recipes.py ..                                         [ 92%]
> cytoolz/tests/test_serialization.py .........                            [ 96%]
> cytoolz/tests/test_signatures.py ...                                     [ 98%]
> cytoolz/tests/test_tlz.py .                                              [ 98%]
> cytoolz/tests/test_utils.py ..                                           [100%]
> 
> =================================== FAILURES ===================================
> _______________________ test_introspect_builtin_modules ________________________
> ...
> >           raise AssertionError(message + '\n\n'.join(messages))
> E           AssertionError: Missing introspection for the following callables:
> E           
> E           builtins:
> E               breakpoint
> 
> cytoolz/tests/test_inspect_args.py:442: AssertionError
> =============================== warnings summary ===============================
> .pybuild/cpython3_3.7_cymem/build/cytoolz/tests/test_embedded_sigs.py::test_class_sigs
>   /build/python-cytoolz-0.9.0.1/.pybuild/cpython3_3.7_cymem/build/cytoolz/tests/test_embedded_sigs.py:39: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
>     toolz_spec = inspect.getargspec(toolz_func)
>   /build/python-cytoolz-0.9.0.1/.pybuild/cpython3_3.7_cymem/build/cytoolz/tests/test_embedded_sigs.py:49: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
> ...
>     toolz_spec = inspect.getargspec(toolz_func)
>   /build/python-cytoolz-0.9.0.1/.pybuild/cpython3_3.7_cymem/build/cytoolz/tests/test_embedded_sigs.py:49: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
>     toolz_sig = toolz_func.__name__ + inspect.formatargspec(*toolz_spec)
>   /build/python-cytoolz-0.9.0.1/.pybuild/cpython3_3.7_cymem/build/cytoolz/tests/test_embedded_sigs.py:54: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
>     **{'formatvalue': lambda x: '=' + getattr(x, '__name__', repr(x))}
> 
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> ============== 1 failed, 189 passed, 177 warnings in 2.00 seconds ==============
> E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd /build/python-cytoolz-0.9.0.1/.pybuild/cpython3_3.7_cymem/build; python3.7 -m pytest 
> dh_auto_test: pybuild --test --test-pytest -i python{version} -p "3.6 3.7" returned exit code 13
> 
> 
> Any idea how to fix this (which is better than just skipping the test which
> would be my only clue)?
> 
> Kind regards
> 
>       Andreas.
> 
> 
> [1] https://salsa.debian.org/python-team/modules/python-cytoolz
> 
> -- 
> http://fam-tille.de
> 
> ----- End forwarded message -----
> 
> -- 
> http://fam-tille.de
> 


Reply to: