From 84fcdd51c0ac9baa93e4481999cc93864beb7e60 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 26 May 2020 14:23:01 +0200 Subject: tests: Return early in hypothesis test for List configtype See https://github.com/qutebrowser/qutebrowser/issues/5390#issuecomment-622881094 --- tests/unit/config/test_configtypes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index abd79820c..18019fb4f 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -271,8 +271,10 @@ class TestAll: ]: return elif (isinstance(typ, functools.partial) and - isinstance(typ.func, configtypes.ListOrValue)): - # "- /" -> "/" + isinstance(typ.func, (configtypes.ListOrValue, + configtypes.List))): + # ListOrValue: "- /" -> "/" + # List: "- /" -> ["/"] return elif (isinstance(typ, configtypes.ListOrValue) and isinstance(typ.valtype, configtypes.Int)): -- cgit v1.2.3-54-g00ecf