Fixed test ref count mistake.
This commit is contained in:
parent
d351f6a015
commit
975edd5647
1 changed files with 6 additions and 6 deletions
|
|
@ -89,8 +89,8 @@ class QAbstractTransitionTest(unittest.TestCase):
|
||||||
del states
|
del states
|
||||||
del transition
|
del transition
|
||||||
|
|
||||||
self.assertEqual(getrefcount(state1), refcount1)
|
self.assertEqual(getrefcount(state1), refcount1 - 1)
|
||||||
self.assertEqual(getrefcount(state2), refcount2)
|
self.assertEqual(getrefcount(state2), refcount2 - 1)
|
||||||
|
|
||||||
def testRefCountOfTargetStatesAfterSingleTargetState(self):
|
def testRefCountOfTargetStatesAfterSingleTargetState(self):
|
||||||
transition = QEventTransition()
|
transition = QEventTransition()
|
||||||
|
|
@ -119,8 +119,8 @@ class QAbstractTransitionTest(unittest.TestCase):
|
||||||
del states
|
del states
|
||||||
del transition
|
del transition
|
||||||
|
|
||||||
self.assertEqual(getrefcount(state1), refcount1)
|
self.assertEqual(getrefcount(state1), refcount1 - 1)
|
||||||
self.assertEqual(getrefcount(state2), refcount2)
|
self.assertEqual(getrefcount(state2), refcount2 - 1)
|
||||||
|
|
||||||
def testRefCountOfTargetStatesBeforeSingleTargetState(self):
|
def testRefCountOfTargetStatesBeforeSingleTargetState(self):
|
||||||
transition = QEventTransition()
|
transition = QEventTransition()
|
||||||
|
|
@ -147,8 +147,8 @@ class QAbstractTransitionTest(unittest.TestCase):
|
||||||
|
|
||||||
del states
|
del states
|
||||||
|
|
||||||
self.assertEqual(getrefcount(state1), refcount1)
|
self.assertEqual(getrefcount(state1), refcount1 - 1)
|
||||||
self.assertEqual(getrefcount(state2), refcount2)
|
self.assertEqual(getrefcount(state2), refcount2 - 1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue