Skip to content

Commit

Permalink
apply Event._split
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzsnz committed Aug 28, 2024
1 parent ccf5325 commit 68ea189
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/slots_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 68ea189

Please sign in to comment.