Don't use type() is comparisons

This commit is contained in:
Matthias
2023-08-22 20:39:36 +02:00
parent 8ac4f4ac44
commit 0c7cb29ea1
5 changed files with 14 additions and 14 deletions

View File

@@ -553,7 +553,7 @@ def test_VolumePairList_whitelist_gen(mocker, whitelist_conf, shitcoinmarkets, t
assert isinstance(whitelist, list)
# Verify length of pairlist matches (used for ShuffleFilter without seed)
if type(whitelist_result) is list:
if isinstance(whitelist_result, list):
assert whitelist == whitelist_result
else:
len(whitelist) == whitelist_result