fix: avoid cythonizing SendReply (#232)
This commit is contained in:
@@ -240,7 +240,6 @@ async def test_standard_interface_properties():
|
||||
"org.freedesktop.DBus.Peer",
|
||||
"org.freedesktop.DBus.ObjectManager",
|
||||
]:
|
||||
|
||||
result = await bus2.call(
|
||||
Message(
|
||||
destination=bus1.unique_name,
|
||||
|
||||
@@ -2,7 +2,6 @@ from dbus_fast._private.address import parse_address
|
||||
|
||||
|
||||
def test_valid_addresses():
|
||||
|
||||
valid_addresses = {
|
||||
"unix:path=/run/user/1000/bus": [("unix", {"path": "/run/user/1000/bus"})],
|
||||
"unix:abstract=/tmp/dbus-ft9sODWpZk,guid=a7b1d5912379c2d471165e9b5cb74a03": [
|
||||
|
||||
@@ -104,7 +104,6 @@ def test_unmarshalling_with_table(unmarshall_table):
|
||||
from dbus_fast._private import unmarshaller
|
||||
|
||||
for item in unmarshall_table:
|
||||
|
||||
stream = io.BytesIO(bytes.fromhex(item["data"]))
|
||||
unmarshaller = Unmarshaller(stream)
|
||||
try:
|
||||
@@ -486,7 +485,6 @@ def tests_fallback_no_cython():
|
||||
|
||||
|
||||
def test_unmarshall_large_message():
|
||||
|
||||
stream = io.BytesIO(bytes.fromhex(get_managed_objects_msg))
|
||||
unmarshaller = Unmarshaller(stream)
|
||||
unmarshaller.unmarshall()
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
import os
|
||||
import traceback
|
||||
from types import TracebackType
|
||||
from typing import Any, Callable, Dict, List, Optional, Type, Union
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
|
||||
from dbus_fast.constants import ErrorType, MessageType
|
||||
from dbus_fast.errors import DBusError
|
||||
from dbus_fast.message import Message
|
||||
from dbus_fast.message_bus import BaseMessageBus, SendReply
|
||||
from dbus_fast.message_bus import BaseMessageBus
|
||||
from dbus_fast.send_reply import SendReply
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
@@ -44,7 +41,7 @@ def test_send_reply_exception() -> None:
|
||||
)
|
||||
send_reply = SendReply(mock_message_bus, mock_message)
|
||||
|
||||
with send_reply as reply:
|
||||
with send_reply:
|
||||
raise DBusError(ErrorType.DISCONNECTED, "Disconnected", None)
|
||||
|
||||
assert len(messages) == 1
|
||||
|
||||
Reference in New Issue
Block a user