use Path.open() instead of open

This commit is contained in:
Matthias
2023-02-25 17:08:02 +01:00
parent c8a4a773ee
commit d014e4590e
10 changed files with 17 additions and 17 deletions

View File

@@ -191,7 +191,7 @@ def test_load_cached_data_for_updating(mocker, testdatadir) -> None:
test_data = None
test_filename = testdatadir.joinpath('UNITTEST_BTC-1m.json')
with open(test_filename, "rt") as file:
with test_filename.open("rt") as file:
test_data = json.load(file)
test_data_df = ohlcv_to_dataframe(test_data, '1m', 'UNITTEST/BTC',