Skip to content

Commit

Permalink
Fix create tmp file in test_failed_extension test
Browse files Browse the repository at this point in the history
  • Loading branch information
praasz committed Jul 1, 2024
1 parent 3cc02ed commit 69b60aa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,9 @@ def test_failed_extension(self):
from openvino.tools.mo import convert_model

with self.assertRaisesRegex(Exception, ".*PyTorch Frontend doesn't support provided model type.*"):
with tempfile.NamedTemporaryFile() as tmpfile:
with tempfile.NamedTemporaryFile(delete=False) as tmpfile:
convert_model(tmpfile.name, framework="pytorch")
os.remove(tmpfile.name)


def create_pytorch_layer_norm(tmp_dir):
Expand Down

0 comments on commit 69b60aa

Please sign in to comment.