Skip to content

Commit

Permalink
test_fetch_symbols: Fix attempt to write to directory `test_fetch_sym…
Browse files Browse the repository at this point in the history
…bols_download`
  • Loading branch information
netanelc305 committed Jun 24, 2024
1 parent 63a59dc commit fc91625
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/services/instruments/test_fetch_symbols.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

import pytest
from packaging.version import Version

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit fc91625

Please sign in to comment.