On Wed 08/07/2020 10:39, Paco Esteban wrote:
> Comments/ok welcome.
Diff looks ok, though you should run 'make update-patches'. Builds ok.
Guess having a newer version of py3-cares is important as (all) tests
fail when having the version from ports (py-cares-2.4.0;p1) around.
Updating to py-cares-3.1.1 (from kmos@, which has not been committed
yet) seems to be a requirement, though one test still fails.
============================= test session starts ==============================
platform openbsd6 -- Python 3.8.3, pytest-4.4.0, py-1.8.0, pluggy-0.11.0
rootdir: /tmp/ports/pobj/py-slixmpp-1.5.2-python3/slixmpp-1.5.2
collected 370 items
tests/live_multiple_streams.py .. [ 0%]
tests/live_test.py F [ 0%]
tests/test_cache.py .... [ 1%]
tests/test_events.py .... [ 2%]
tests/test_jid.py .................................... [ 12%]
tests/test_overall.py .. [ 12%]
tests/test_plugins.py ...... [ 14%]
tests/test_stanza_base.py ..... [ 15%]
tests/test_stanza_element.py ............................... [ 24%]
tests/test_stanza_error.py .... [ 25%]
tests/test_stanza_gmail.py .. [ 25%]
tests/test_stanza_iq.py ..... [ 27%]
tests/test_stanza_message.py ... [ 28%]
tests/test_stanza_presence.py .... [ 29%]
tests/test_stanza_roster.py ... [ 30%]
tests/test_stanza_xep_0004.py ....... [ 31%]
tests/test_stanza_xep_0009.py ............ [ 35%]
tests/test_stanza_xep_0030.py ............................. [ 42%]
tests/test_stanza_xep_0033.py .... [ 44%]
tests/test_stanza_xep_0047.py .... [ 45%]
tests/test_stanza_xep_0050.py ...... [ 46%]
tests/test_stanza_xep_0059.py ....... [ 48%]
tests/test_stanza_xep_0060.py ................... [ 53%]
tests/test_stanza_xep_0085.py . [ 54%]
tests/test_stanza_xep_0122.py ..... [ 55%]
tests/test_stanza_xep_0184.py .. [ 55%]
tests/test_stanza_xep_0300.py .. [ 56%]
tests/test_stanza_xep_0323.py ......... [ 58%]
tests/test_stanza_xep_0325.py .... [ 60%]
tests/test_stanza_xep_0380.py . [ 60%]
tests/test_stream.py ... [ 61%]
tests/test_stream_exceptions.py .... [ 62%]
tests/test_stream_filters.py .. [ 62%]
tests/test_stream_handlers.py ...... [ 64%]
tests/test_stream_presence.py ....... [ 66%]
tests/test_stream_roster.py .......... [ 68%]
tests/test_stream_xep_0030.py .............. [ 72%]
tests/test_stream_xep_0047.py ... [ 73%]
tests/test_stream_xep_0050.py ........... [ 76%]
tests/test_stream_xep_0060.py ....................................... [ 87%]
tests/test_stream_xep_0066.py . [ 87%]
tests/test_stream_xep_0085.py . [ 87%]
tests/test_stream_xep_0092.py .. [ 88%]
tests/test_stream_xep_0128.py .. [ 88%]
tests/test_stream_xep_0249.py .. [ 89%]
tests/test_stream_xep_0323.py sssssssssssssssssssss [ 94%]
tests/test_stream_xep_0325.py ......... [ 97%]
tests/test_tostring.py .........
=================================== FAILURES ===================================
_____________________ TestLiveStream.testClientConnection ______________________
self = <tests.live_test.TestLiveStream testMethod=testClientConnection>
def testClientConnection(self):
"""Test that we can interact with a live ClientXMPP instance."""
self.stream_start(mode='client',
socket='live',
skip=False,
jid='user@localhost/test',
password='user')
# Use sid=None to ignore any id sent by the server since
# we can't know it in advance.
> self.recv_header(sfrom='localhost', sid=None)
tests/live_test.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
slixmpp/test/slixtest.py:465: in recv_header
recv_header = self.xmpp.socket.next_recv(timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <slixmpp.test.mocksocket.TestSocket object at 0x1e45e094b700>
name = 'next_recv'
def __getattr__(self, name):
"""
Return attribute values of internal, dummy socket.
Some attributes and methods are disabled to prevent the
socket from connecting to the network.
Arguments:
name -- Name of the attribute requested.
"""
def dummy(*args):
"""Method to do nothing and prevent actual socket connections."""
return None
overrides = {'connect': dummy,
'close': dummy,
'shutdown': dummy}
> return overrides.get(name, getattr(self.socket, name))
E AttributeError: 'socket' object has no attribute 'next_recv'
slixmpp/test/mocksocket.py:60: AttributeError
----------------------------- Captured stdout call -----------------------------
<Queue maxsize=0>
=============================== warnings summary ===============================
slixmpp/test/livesocket.py:14
slixmpp/test/livesocket.py:14
slixmpp/test/livesocket.py:14
slixmpp/test/livesocket.py:14
slixmpp/test/livesocket.py:14
slixmpp/test/livesocket.py:14
slixmpp/test/livesocket.py:14
/tmp/ports/pobj/py-slixmpp-1.5.2-python3/slixmpp-1.5.2/slixmpp/test/livesocket.py:14:
PytestWarning: cannot collect test class 'TestLiveSocket' because it has a
__init__ constructor
class TestLiveSocket(object):
slixmpp/test/mocksocket.py:13
slixmpp/test/mocksocket.py:13
slixmpp/test/mocksocket.py:13
slixmpp/test/mocksocket.py:13
slixmpp/test/mocksocket.py:13
slixmpp/test/mocksocket.py:13
slixmpp/test/mocksocket.py:13
/tmp/ports/pobj/py-slixmpp-1.5.2-python3/slixmpp-1.5.2/slixmpp/test/mocksocket.py:13:
PytestWarning: cannot collect test class 'TestSocket' because it has a
__init__ constructor
class TestSocket(object):
slixmpp/test/mocksocket.py:154
slixmpp/test/mocksocket.py:154
slixmpp/test/mocksocket.py:154
slixmpp/test/mocksocket.py:154
slixmpp/test/mocksocket.py:154
slixmpp/test/mocksocket.py:154
slixmpp/test/mocksocket.py:154
/tmp/ports/pobj/py-slixmpp-1.5.2-python3/slixmpp-1.5.2/slixmpp/test/mocksocket.py:154:
PytestWarning: cannot collect test class 'TestTransport' because it has a
__init__ constructor
class TestTransport(object):
slixmpp/thirdparty/orderedset.py:25
/tmp/ports/pobj/py-slixmpp-1.5.2-python3/slixmpp-1.5.2/slixmpp/thirdparty/orderedset.py:25:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working
class OrderedSet(collections.MutableSet):
tests/test_stream_xep_0047.py::TestInBandByteStreams::testSendData
/usr/local/lib/python3.8/unittest/case.py:633: RuntimeWarning: coroutine
'TestInBandByteStreams.testSendData' was never awaited
method()
-- Docs: https://docs.pytest.org/en/latest/warnings.html
======== 1 failed, 348 passed, 21 skipped, 23 warnings in 15.61 seconds ========
*** Error 1 in . (/usr/ports/lang/python/python.port.mk:263 'do-test': @cd
/tmp/ports/pobj/py-slixmpp-1.5.2-python3/slixmpp-1.5.2 && /usr/bi...)