Skip to content

Commit

Permalink
test: test working for strong func
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Aug 12, 2023
1 parent 8351217 commit d27158b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_psygnal.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,10 +940,11 @@ def cb3(arg):
def test_deepcopy():
from copy import deepcopy

mock = Mock()

class T:
sig = Signal()

mock = Mock()
t = T()

@t.sig.connect
Expand All @@ -955,7 +956,6 @@ def f():
mock.reset_mock()

x = deepcopy(t)
assert x is not t
x.sig.emit()
mock.assert_called_once()

assert x is not t

0 comments on commit d27158b

Please sign in to comment.