Don't remove elements from list we're iterating over

closes #9127
This commit is contained in:
Matthias
2023-08-29 17:44:39 +02:00
parent 5efa40215b
commit 5eb446f1ce
2 changed files with 5 additions and 3 deletions

View File

@@ -1373,6 +1373,9 @@ def test_expand_pairlist(wildcardlist, pairs, expected):
(['BTC/USDT:USDT'],
['BTC/USDT:USDT', 'BTC/USDT'],
['BTC/USDT:USDT']),
(['BB_BTC/USDT', 'CC_BTC/USDT', 'AA_ETH/USDT', 'XRP/USDT', 'ETH/USDT', 'XX_BTC/USDT'],
['BTC/USDT', 'ETH/USDT'],
['XRP/USDT', 'ETH/USDT']),
])
def test_expand_pairlist_keep_invalid(wildcardlist, pairs, expected):
if expected is None: