~ubuntu-branches/ubuntu/natty/pyside/natty-proposed

« back to all changes in this revision

Viewing changes to tests/QtCore/qobject_parent_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2011-02-18 18:01:00 UTC
  • mfrom: (1.2.3 upstream) (6.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110218180100-vaczjij7g08fzfme
Tags: 1.0.0~rc1-1
* New 1.0.0~rc1 upstream release
  - Bump the B-D chain versions:
    + apiextractor to 0.10.0-2~
    + generatorrunner to 0.6.6
    + shiboken to 1.0.0~rc1
* Update patches to ~rc1.
* debian/watch: update to handle Release Candidates too.
* Bump XS-Python-Version to >= 2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        self.child.setParent(self.parent)
26
26
        self.assertEqual(getrefcount(self.child), 3)
27
27
 
 
28
    def testSetParentTwice(self):
 
29
        self.assertEqual(getrefcount(self.child), 2)
 
30
        self.child.setParent(self.parent)
 
31
        self.assertEqual(getrefcount(self.child), 3)
 
32
        self.child.setParent(self.parent)
 
33
        self.assertEqual(getrefcount(self.child), 3)
 
34
 
28
35
    def testConstructor(self):
29
36
        #QObject(QObject) refcount changes
30
37
        child = QObject(self.parent)