-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Description
event_loop fixture was removed from pytest-asyncio:
pytest-dev/pytest-asyncio#1106
in 1.0.
The build/test of aiorpcX now fails with:
[ 19s] ______ ERROR at setup of TestSOCKSProxy.test_good_SOCKS4[True-::1-auth1] _______
[ 19s] file /home/abuild/rpmbuild/BUILD/python-aiorpcX-0.24-build/aiorpcX-0.24/tests/test_socks.py, line 524
[ 19s] @pytest.mark.asyncio
[ 19s] async def test_good_SOCKS4(self, proxy_address, auth):
[ 19s] FakeServer.response = TestSOCKS4.response()
[ 19s] result = await SOCKSProxy.auto_detect_at_address(proxy_address, auth)
[ 19s] assert isinstance(result, SOCKSProxy)
[ 19s] # FIXME: how to actually distinguish SOCKS4 and SOCKS4a?
[ 19s] assert result.protocol is SOCKS4a
[ 19s] assert result.address == proxy_address
[ 19s] assert result.auth == auth
[ 19s] assert result.peername[0] in local_hosts(proxy_address.host)
[ 19s] assert result.peername[1] == proxy_address.port
[ 19s] file /home/abuild/rpmbuild/BUILD/python-aiorpcX-0.24-build/aiorpcX-0.24/tests/test_socks.py, line 484
[ 19s] @pytest.fixture(params=localhosts)
[ 19s] def proxy_address(request, event_loop, unused_tcp_port):
[ 19s] E fixture 'event_loop' not found
[ 19s] > available fixtures: _class_event_loop, _function_event_loop, _module_event_loop, _package_event_loop, _session_event_loop, addr4, addr4_bad, addr4a, addr4a_bad, addr5, auth, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, chosen_auth, doctest_namespace, event_loop_policy, monkeypatch, proxy_address, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, unused_udp_port, unused_udp_port_factory, use_uvloop
[ 19s] > use 'pytest --fixtures [testpath]' for help on them.
[ 19s]
[ 19s] /home/abuild/rpmbuild/BUILD/python-aiorpcX-0.24-build/aiorpcX-0.24/tests/test_socks.py:484
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels