File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -57,26 +57,28 @@ void PythonQtMemoryTests::cleanup()
5757void PythonQtMemoryTests::testBaseCleanup ()
5858{
5959 PythonQt::init ();
60+ cleanup ();
6061}
6162
6263void PythonQtMemoryTests::testCleanupWithFlags ()
6364{
6465 PythonQt::init (PythonQt::IgnoreSiteModule | PythonQt::RedirectStdOut);
66+ cleanup ();
6567}
6668
6769void PythonQtMemoryTests::testInitAlreadyInitialized ()
6870{
6971 Py_InitializeEx (true );
7072 PythonQt::init (PythonQt::PythonAlreadyInitialized);
73+ cleanup ();
7174}
7275
7376void PythonQtMemoryTests::testSeveralCleanup () {
74- return ;
7577 PythonQt::init ();
76- PythonQt::preCleanup ();
77- PythonQt::cleanup ();
78+ cleanup ();
7879
7980 PythonQt::init ();
81+ cleanup ();
8082}
8183
8284void PythonQtMemoryTests::testInitWithPreconfig () {
@@ -85,6 +87,7 @@ void PythonQtMemoryTests::testInitWithPreconfig() {
8587 PyConfig_InitPythonConfig (&config);
8688 Py_InitializeFromConfig (&config);
8789 PythonQt::init (PythonQt::RedirectStdOut | PythonQt::PythonAlreadyInitialized);
90+ cleanup ();
8891#endif
8992}
9093
You can’t perform that action at this time.
0 commit comments