File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -61,18 +61,18 @@ void PythonQtTestCleanup::testCallQtMethodInDestructorOwnedQTimer()
6161
6262void PythonQtTestCleanup::testCallQtMethodInDestructorWeakRefGuarded ()
6363{
64- QVERIFY (_helper->runScript (
65- " import weakref\n " \
66- " import PythonQt.QtCore\n " \
67- " class TimerWrapper(object):\n " \
68- " def __init__(self):\n " \
69- " self.timerWeakRef = weakref.ref(PythonQt.QtCore.QTimer())\n " \
70- " def __del__(self):\n " \
71- " if self.timerWeakRef():\n " \
72- " self.timerWeakRef().setSingleShot(True)\n " \
73- " x = TimerWrapper()\n " \
74- " obj.setPassed()\n "
75- ));
64+ QVERIFY (_helper->runScript (
65+ " import weakref\n " \
66+ " import PythonQt.QtCore\n " \
67+ " class TimerWrapper(object):\n " \
68+ " def __init__(self):\n " \
69+ " self.timerWeakRef = weakref.ref(PythonQt.QtCore.QTimer())\n " \
70+ " def __del__(self):\n " \
71+ " if self.timerWeakRef():\n " \
72+ " self.timerWeakRef().setSingleShot(True)\n " \
73+ " x = TimerWrapper()\n " \
74+ " obj.setPassed()\n "
75+ ));
7676}
7777
7878void PythonQtTestCleanup::testSignalReceiverCleanup ()
You can’t perform that action at this time.
0 commit comments