ImportNetworkThrows case is removed (#15000)
This commit is contained in:
parent
573a7fb6b5
commit
534905fd2d
@ -356,23 +356,6 @@ TEST_P(IEClassSpecificDeviceTestSetConfig, SetConfigSpecificDeviceNoThrow) {
|
||||
// ImportNetwork
|
||||
//
|
||||
|
||||
TEST_P(IEClassBasicTestP, ImportNetworkThrows) {
|
||||
InferenceEngine::Core ie = BehaviorTestsUtils::createIECoreWithTemplate();
|
||||
|
||||
if (target_device == CommonTestUtils::DEVICE_GPU) {
|
||||
ASSERT_THROW(ie.ImportNetwork("model", target_device), InferenceEngine::NetworkNotRead);
|
||||
|
||||
const std::string modelName = "compiled_blob.blob";
|
||||
{
|
||||
std::ofstream file(modelName);
|
||||
file << "content";
|
||||
}
|
||||
|
||||
EXPECT_THROW(ie.ImportNetwork(modelName, target_device), InferenceEngine::NotImplemented);
|
||||
ASSERT_EQ(0, std::remove(modelName.c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
TEST(IEClassBasicTest, smoke_ImportNetworkHeteroThrows) {
|
||||
InferenceEngine::Core ie = BehaviorTestsUtils::createIECoreWithTemplate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user