diff --git a/tests/test_psygnal.py b/tests/test_psygnal.py index 89495abb..28106676 100644 --- a/tests/test_psygnal.py +++ b/tests/test_psygnal.py @@ -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 @@ -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