Skip to content

Commit a8cee4c

Browse files
author
MShekow
committed
waitSignal and waitSignals() have a callback/callbacks parameter that makes it possible to test that emitted signals have specific parameters set. waitSignals() also has a force_order parameter that allows to configure 3 different levels of strictness regarding the order in which the signals are expected. #118
(this commit contains a bug fix for Python2.7 compatibility)
1 parent b8507e3 commit a8cee4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytestqt/wait_signal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ def _cleanup(self):
261261
signal = self._signals[i]
262262
slot = self._slots[i]
263263
_silent_disconnect(signal, slot)
264-
self._signals_emitted.clear()
264+
del self._signals_emitted[:]
265265
self._signals_map.clear()
266-
self._slots.clear()
266+
del self._slots[:]
267267

268268

269269
class SignalEmittedSpy(object):

0 commit comments

Comments
 (0)