Fix "Too many open Files" exception

This commit is contained in:
Matthias
2021-05-18 20:39:55 +02:00
parent 16c22c7b68
commit 7a9853bfe1
2 changed files with 3 additions and 2 deletions

View File

@@ -600,6 +600,7 @@ def test_generate_optimizer(mocker, hyperopt_conf) -> None:
mocker.patch('freqtrade.optimize.hyperopt.get_timerange',
return_value=(Arrow(2017, 12, 10), Arrow(2017, 12, 13)))
patch_exchange(mocker)
mocker.patch.object(Path, 'open')
mocker.patch('freqtrade.optimize.hyperopt.load', return_value={'XRP/BTC': None})
optimizer_param = {