Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 723604 - dev-python/python-jsonrpc-server fails tests
Summary: dev-python/python-jsonrpc-server fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew Nowa Ammerlaan
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-18 07:09 UTC by Agostino Sarubbo
Modified: 2020-12-22 16:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,15.19 KB, text/plain)
2020-05-18 07:09 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-05-18 07:09:44 UTC
This is an auto-filed bug because dev-python/python-jsonrpc-server fails tests.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-18 07:09:52 UTC
Created attachment 639980 [details]
build.log

build log and emerge --info
Comment 2 Andrew Nowa Ammerlaan gentoo-dev 2020-05-18 09:10:52 UTC
Interesting, it is working for me:

test/test_streams.py::test_writer_bad_message PASSED                                                                                                                                              [100%]

=========================================================================================== warnings summary ============================================================================================
test/test_endpoint.py::test_bad_message
/var/tmp/portage/dev-python/python-jsonrpc-server-0.3.4/work/python-jsonrpc-server-0.3.4/pyls_jsonrpc/endpoint.py:101: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
log.warn("Unknown message type %s", message)

test/test_endpoint.py::test_consume_notification_method_not_found
/var/tmp/portage/dev-python/python-jsonrpc-server-0.3.4/work/python-jsonrpc-server-0.3.4/pyls_jsonrpc/endpoint.py:138: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
log.warn("Ignoring notification for unknown method %s", method)

test/test_endpoint.py::test_consume_request_cancel_unknown
/var/tmp/portage/dev-python/python-jsonrpc-server-0.3.4/work/python-jsonrpc-server-0.3.4/pyls_jsonrpc/endpoint.py:168: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
log.warn("Received cancel notification for unknown message id %s", msg_id)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
==================================================================================== 27 passed, 3 warnings in 0.08s =====================================================================================

Likely you and I have a different version installed of some dependency, I will investigate further.

Could you please comment on which versions of the dependencies you have installed, so I can compare them with mine:

andrew-gentoo-pc andrew # equery g python-jsonrpc-server         
* Searching for python-jsonrpc-server ...

* dependency graph for dev-python/python-jsonrpc-server-0.3.4
`--  dev-python/python-jsonrpc-server-0.3.4  ~amd64 
`--  dev-python/mock-3.0.5-r1  (dev-python/mock) amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-python/pycodestyle-2.6.0  (dev-python/pycodestyle) ~amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-python/pyflakes-2.2.0  (dev-python/pyflakes) ~amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-python/pylint-2.4.4-r1  (dev-python/pylint) ~amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-python/ujson-2.0.3  (dev-python/ujson) amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-lang/python-3.6.10-r2  (dev-lang/python) amd64
`--  dev-lang/python-3.7.7-r2  (dev-lang/python) amd64
`--  dev-lang/python-exec-2.4.6-r1  (>=dev-lang/python-exec-2) amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-python/versioneer-0.18-r1  (dev-python/versioneer) ~amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-python/pytest-5.4.2  (dev-python/pytest) ~amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
`--  dev-python/setuptools-46.3.0  (>=dev-python/setuptools-42.0.2) ~amd64  [python_targets_python3_6(-)? python_targets_python3_7(-)? -python_single_target_python3_6(-) -python_single_target_python3_7(-)]
[ dev-python/python-jsonrpc-server-0.3.4 stats: packages (12), max depth (1) ]
Comment 3 Andrew Nowa Ammerlaan gentoo-dev 2020-05-18 10:50:45 UTC
I can reproduce this with ujson-2.0.3, I'll make a PR with the fix in a bit
Comment 4 Larry the Git Cow gentoo-dev 2020-05-26 20:43:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0004fc26421727f3c1de7b037d94cea0a1049bbd

commit 0004fc26421727f3c1de7b037d94cea0a1049bbd
Author:     Andrew Ammerlaan <andrewammerlaan@riseup.net>
AuthorDate: 2020-05-21 10:28:43 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-05-26 20:41:48 +0000

    dev-python/python-jsonrpc-server: drop py3_6
    
    Closes: https://bugs.gentoo.org/723604
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../python-jsonrpc-server/python-jsonrpc-server-0.3.4.ebuild       | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)