From 68ea189b3fb4f8d557f57b785dfa4c0ac6f96b95 Mon Sep 17 00:00:00 2001 From: gonzo Date: Wed, 28 Aug 2024 09:19:22 +0200 Subject: [PATCH] apply Event._split --- tests/slots_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/slots_test.py b/tests/slots_test.py index 1584f8c..4507a2e 100644 --- a/tests/slots_test.py +++ b/tests/slots_test.py @@ -58,7 +58,8 @@ def test_slot_obj(self): """Test slot obj""" obj = Obj() - slot_obj = Slot(obj.method, None, None) + _obj, _meth = Event._split(obj.method) + slot_obj = Slot(_obj, None, _meth) # assert slot_obj.obj() == 42 @@ -81,7 +82,7 @@ def test_slot_weakref(self): """Test slot weakref""" obj = Obj() wr = weakref.ref(obj) - slot1 = Slot(obj.method, None, None) + slot1 = Slot(obj, None, None) slot2 = Slot(None, wr, None) # assert slot1.obj() == 42