diff options
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/bug_714.py')
-rw-r--r-- | sources/pyside2/tests/QtWidgets/bug_714.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtWidgets/bug_714.py b/sources/pyside2/tests/QtWidgets/bug_714.py index 93dee6630..35d4f6d62 100644 --- a/sources/pyside2/tests/QtWidgets/bug_714.py +++ b/sources/pyside2/tests/QtWidgets/bug_714.py @@ -38,8 +38,12 @@ class TestLabelPixmap(unittest.TestCase): l.setPixmap(p) # doesn't increment pixmap ref because this makes a copy self.assertEqual(sys.getrefcount(p), 2) - p = l.pixmap() # this increment the reference because this is an internal pointer - self.assertEqual(sys.getrefcount(p), 3) + p = l.pixmap() + # this used to increment the reference because this is + # an internal pointer, but not anymore since we don't create + # a copy + # self.assertEqual(sys.getrefcount(p), 3) + self.assertEqual(sys.getrefcount(p), 2) p2 = l.pixmap() self.assertEqual(p, p2) |