aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui')
-rw-r--r--tests/QtGui/event_filter_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtGui/event_filter_test.py b/tests/QtGui/event_filter_test.py
index 88dbd960b..ec82515da 100644
--- a/tests/QtGui/event_filter_test.py
+++ b/tests/QtGui/event_filter_test.py
@@ -2,7 +2,7 @@ import unittest
import sys
from helper import UsesQApplication
-from PySide.QtCore import QObject, QEvent, QTimer
+from PySide.QtCore import QObject, QEvent
from PySide.QtGui import QWidget
class MyFilter(QObject):
@@ -17,10 +17,10 @@ class EventFilter(UsesQApplication):
o = QObject()
filt = MyFilter()
o.installEventFilter(filt)
- self.assertEqual(sys.getrefcount(o), 3)
+ self.assertEqual(sys.getrefcount(o), 2)
o.installEventFilter(filt)
- self.assertEqual(sys.getrefcount(o), 3)
+ self.assertEqual(sys.getrefcount(o), 2)
o.removeEventFilter(filt)
self.assertEqual(sys.getrefcount(o), 2)