summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-05-26 14:23:01 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-05-26 14:23:01 +0200
commit84fcdd51c0ac9baa93e4481999cc93864beb7e60 (patch)
tree7b7e437cc20ef665980ea9b6bf0a3634df4a5180
parent98965f5c083a8b2859d721b7ea0e8e7170e7c847 (diff)
downloadqutebrowser-84fcdd51c0ac9baa93e4481999cc93864beb7e60.tar.gz
qutebrowser-84fcdd51c0ac9baa93e4481999cc93864beb7e60.zip
tests: Return early in hypothesis test for List configtype
See https://github.com/qutebrowser/qutebrowser/issues/5390#issuecomment-622881094
-rw-r--r--tests/unit/config/test_configtypes.py6
1 files 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)):