Package: python3-autobahn
Version: 24.4.2+dfsg1-3
Severity: important
Tags: ftbfs
(built in a clean sbuild environment)
The relevant logs are:
=================================== FAILURES ===================================
__________ TestApplicationRunner.test_conflict_SSLContext_with_ws_url __________
RuntimeError: There is no current event loop in thread 'MainThread'.
During handling of the above exception, another exception occurred:
self = <test_wamp_runner.TestApplicationRunner
testMethod=test_conflict_SSLContext_with_ws_url>
def test_conflict_SSLContext_with_ws_url(self):
"""
ApplicationRunner must raise an exception if given an ssl value that is
an instance of SSLContext, but only a "ws:" URL.
"""
import ssl
try:
# Try to create an SSLContext, to be as rigorous as we can be
# by avoiding making assumptions about the ApplicationRunner
# implementation. If we happen to be on a Python that has no
# SSLContext, we pass ssl=True, which will simply cause this
# test to degenerate to the behavior of
# test_conflict_SSL_True_with_ws_url (above). In fact, at the
# moment (2015-05-10), none of this matters because the
# ApplicationRunner implementation does not check to require
# that its ssl argument is either a bool or an SSLContext. But
# that may change, so we should be careful.
ssl.create_default_context
except AttributeError:
context = True
else:
context = ssl.create_default_context()
with replace_loop(Mock()) as loop:
loop.run_until_complete = Mock(return_value=(Mock(), Mock()))
runner = ApplicationRunner('ws://127.0.0.1:8080/wss', 'realm',
ssl=context)
error = (r'^ssl argument value passed to ApplicationRunner '
r'conflicts with the "ws:" prefix of the url '
r'argument\. Did you mean to use "wss:"\?$')
> self._assertRaisesRegex(Exception, error, runner.run, '_unused_')
autobahn/asyncio/test/test_wamp_runner.py:134:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
autobahn/asyncio/test/test_wamp_runner.py:47: in _assertRaisesRegex
f(exception, error, *args, **kw)
E AssertionError: "^ssl argument value passed to ApplicationRunner conflicts
with the "ws:" prefix of the url argument\. Did you mean to use "wss:"\?$" does
not match "There is no current event loop in thread 'MainThread'."
___________ TestApplicationRunner.test_conflict_SSL_True_with_ws_url ___________
RuntimeError: There is no current event loop in thread 'MainThread'.
During handling of the above exception, another exception occurred:
self = <test_wamp_runner.TestApplicationRunner
testMethod=test_conflict_SSL_True_with_ws_url>
def test_conflict_SSL_True_with_ws_url(self):
"""
ApplicationRunner must raise an exception if given an ssl value of True
but only a "ws:" URL.
"""
with replace_loop(Mock()) as loop:
loop.run_until_complete = Mock(return_value=(Mock(), Mock()))
runner = ApplicationRunner('ws://127.0.0.1:8080/wss', 'realm',
ssl=True)
error = (r'^ssl argument value passed to ApplicationRunner '
r'conflicts with the "ws:" prefix of the url '
r'argument\. Did you mean to use "wss:"\?$')
> self._assertRaisesRegex(Exception, error, runner.run, '_unused_')
autobahn/asyncio/test/test_wamp_runner.py:102:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
autobahn/asyncio/test/test_wamp_runner.py:47: in _assertRaisesRegex
f(exception, error, *args, **kw)
E AssertionError: "^ssl argument value passed to ApplicationRunner conflicts
with the "ws:" prefix of the url argument\. Did you mean to use "wss:"\?$" does
not match "There is no current event loop in thread 'MainThread'."
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.10+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-autobahn depends on:
ii python3 3.13.9-2
ii python3-attr 25.4.0-1
ii python3-base58 1.0.3-2
ii python3-cbor 1.0.0-1.2+b6
ii python3-cffi 2.0.0-2
ii python3-cryptography 46.0.1-1
ii python3-ecdsa 0.19.1-1
ii python3-flatbuffers 23.5.26+dfsg-4
ii python3-hyperlink 21.0.0-6
ii python3-lz4 4.4.4+dfsg-3+b1
ii python3-mnemonic 0.21-2
ii python3-msgpack 1.0.3-3+b5
ii python3-nacl 1.5.0-8
ii python3-openssl 25.3.0-1
ii python3-passlib 1.7.4-6
ii python3-pyqrcode 1.2.1-4
ii python3-service-identity 24.2.0-1
ii python3-snappy 0.5.3-1.2+b6
ii python3-trie 0.4.0+ds-1
ii python3-twisted 25.5.0-4
ii python3-txaio 25.6.1-3
ii python3-u-msgpack 2.8.0-4
ii python3-ubjson 0.16.1-4+b4
ii python3-ujson 5.11.0-3+b1
ii python3-wsaccel 0.6.3-5+b2
ii python3-zope.interface 8.1-1+b1
python3-autobahn recommends no packages.
python3-autobahn suggests no packages.
-- no debconf information