Fix tests and xenial build

pull/341/head
Michael Zanetti 2020-08-31 20:32:24 +02:00
parent 16c4fa3345
commit 9f49187dc1
2 changed files with 3 additions and 3 deletions

View File

@ -245,7 +245,7 @@ void PythonIntegrationPlugin::deinitPython()
PyEval_RestoreThread(s_mainThreadState);
// Tear down the python engine
Py_FinalizeEx();
Py_Finalize();
// Our main thread state is destroyed now
s_mainThreadState = nullptr;

View File

@ -291,8 +291,8 @@ void TestIntegrations::getThingClasses_data()
QTest::addColumn<VendorId>("vendorId");
QTest::addColumn<int>("resultCount");
QTest::newRow("vendor nymea") << nymeaVendorId << 14;
QTest::newRow("no filter") << VendorId() << 14;
QTest::newRow("vendor nymea") << nymeaVendorId << 17;
QTest::newRow("no filter") << VendorId() << 17;
QTest::newRow("invalid vendor") << VendorId("93e7d361-8025-4354-b17e-b68406c800bc") << 0;
}