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