We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab8ab1 commit bda8783Copy full SHA for bda8783
tests/PythonQtTestCleanup.cpp
@@ -81,11 +81,12 @@ void PythonQtTestCleanup::testSignalReceiverCleanup()
81
82
// Test that PythonQtSignalReceiver is cleaned up properly,
83
// i.e. PythonQt::cleanup() doesn't segfault
84
- main.evalScript(
+ QVERIFY(_helper->runScript(
85
"import PythonQt.QtCore\n" \
86
"timer = PythonQt.QtCore.QTimer(obj)\n" \
87
- "timer.connect('destroyed()', obj.onDestroyed)\n"
88
- );
+ "timer.connect('destroyed()', obj.onDestroyed)\n" \
+ "obj.setPassed()\n"
89
+ ));
90
}
91
92
bool PythonQtTestCleanupHelper::runScript(const char* script)
0 commit comments