Skip to content

Commit bda8783

Browse files
jcfrmrbean-bremen
authored andcommitted
chore(PythonQtTestCleanup): Consistently use helper to run test scripts
1 parent 2ab8ab1 commit bda8783

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/PythonQtTestCleanup.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ void PythonQtTestCleanup::testSignalReceiverCleanup()
8181

8282
// Test that PythonQtSignalReceiver is cleaned up properly,
8383
// i.e. PythonQt::cleanup() doesn't segfault
84-
main.evalScript(
84+
QVERIFY(_helper->runScript(
8585
"import PythonQt.QtCore\n" \
8686
"timer = PythonQt.QtCore.QTimer(obj)\n" \
87-
"timer.connect('destroyed()', obj.onDestroyed)\n"
88-
);
87+
"timer.connect('destroyed()', obj.onDestroyed)\n" \
88+
"obj.setPassed()\n"
89+
));
8990
}
9091

9192
bool PythonQtTestCleanupHelper::runScript(const char* script)

0 commit comments

Comments
 (0)