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 bda8783 commit 8a33ce7Copy full SHA for 8a33ce7
tests/PythonQtTestCleanup.cpp
@@ -89,6 +89,15 @@ void PythonQtTestCleanup::testSignalReceiverCleanup()
89
));
90
}
91
92
+void PythonQtTestCleanup::testPyFinalizeThenPythonQtCleanup()
93
+{
94
+ if (Py_IsInitialized()) {
95
+ Py_Finalize();
96
+ }
97
+
98
+ PythonQt::cleanup();
99
+}
100
101
bool PythonQtTestCleanupHelper::runScript(const char* script)
102
{
103
_passed = false;
tests/PythonQtTestCleanup.h
@@ -20,6 +20,7 @@ private Q_SLOTS:
20
void testCallQtMethodInDestructorOwnedQTimer();
21
void testCallQtMethodInDestructorWeakRefGuarded();
22
void testSignalReceiverCleanup();
23
+ void testPyFinalizeThenPythonQtCleanup();
24
25
private:
26
PythonQtTestCleanupHelper* _helper;
0 commit comments