Fix tests and xenial build
This commit is contained in:
parent
16c4fa3345
commit
9f49187dc1
@ -245,7 +245,7 @@ void PythonIntegrationPlugin::deinitPython()
|
|||||||
PyEval_RestoreThread(s_mainThreadState);
|
PyEval_RestoreThread(s_mainThreadState);
|
||||||
|
|
||||||
// Tear down the python engine
|
// Tear down the python engine
|
||||||
Py_FinalizeEx();
|
Py_Finalize();
|
||||||
|
|
||||||
// Our main thread state is destroyed now
|
// Our main thread state is destroyed now
|
||||||
s_mainThreadState = nullptr;
|
s_mainThreadState = nullptr;
|
||||||
|
|||||||
@ -291,8 +291,8 @@ void TestIntegrations::getThingClasses_data()
|
|||||||
QTest::addColumn<VendorId>("vendorId");
|
QTest::addColumn<VendorId>("vendorId");
|
||||||
QTest::addColumn<int>("resultCount");
|
QTest::addColumn<int>("resultCount");
|
||||||
|
|
||||||
QTest::newRow("vendor nymea") << nymeaVendorId << 14;
|
QTest::newRow("vendor nymea") << nymeaVendorId << 17;
|
||||||
QTest::newRow("no filter") << VendorId() << 14;
|
QTest::newRow("no filter") << VendorId() << 17;
|
||||||
QTest::newRow("invalid vendor") << VendorId("93e7d361-8025-4354-b17e-b68406c800bc") << 0;
|
QTest::newRow("invalid vendor") << VendorId("93e7d361-8025-4354-b17e-b68406c800bc") << 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user