From fc91625742ca5c4fd98663d0233791c1bcb6fc0b Mon Sep 17 00:00:00 2001 From: Netanel Cohen Date: Mon, 24 Jun 2024 17:08:27 +0300 Subject: [PATCH] test_fetch_symbols: Fix attempt to write to directory `test_fetch_symbols_download` --- tests/services/instruments/test_fetch_symbols.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/services/instruments/test_fetch_symbols.py b/tests/services/instruments/test_fetch_symbols.py index db02e2999..3f34db683 100644 --- a/tests/services/instruments/test_fetch_symbols.py +++ b/tests/services/instruments/test_fetch_symbols.py @@ -1,3 +1,5 @@ +from pathlib import Path + import pytest from packaging.version import Version @@ -27,7 +29,8 @@ async def test_fetch_symbols_download(service_provider, tmp_path): Test download of device symbol files """ if Version(service_provider.product_version) < Version('17.0'): - with tmp_path.open('wb') as file: + tmp_file = Path(tmp_path) / 'tmp' + with tmp_file.open('wb') as file: DtFetchSymbols(service_provider).get_file(0, file) else: if not isinstance(service_provider, RemoteServiceDiscoveryService):