summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/QtCore/qtimer_timeout_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/QtCore/qtimer_timeout_test.py b/tests/QtCore/qtimer_timeout_test.py
index 8dfe395..5b833fd 100644
--- a/tests/QtCore/qtimer_timeout_test.py
+++ b/tests/QtCore/qtimer_timeout_test.py
@@ -3,6 +3,7 @@
import unittest
import os
+import sys
from tempfile import mkstemp
from PySide.QtCore import QObject, QTimer, SIGNAL
from helper import UsesQCoreApplication
@@ -44,6 +45,7 @@ class TestTimeoutSignal(UsesQCoreApplication):
def testTimeoutSignal(self):
#Test the QTimer timeout() signal
+ refCount = sys.getrefcount(self.timer)
QObject.connect(self.timer, SIGNAL('timeout()'), self.callback)
self.timer.start(4)
self.watchdog.startTimer(10)
@@ -51,6 +53,7 @@ class TestTimeoutSignal(UsesQCoreApplication):
self.app.exec_()
self.assert_(self.called)
+ self.assertEqual(sys.getrefcount(self.timer), refCount)
if __name__ == '__main__':
unittest.main()