diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-04-21 23:19:50 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-04-21 23:19:50 +0200 |
commit | a4abf0f535c1314048ada8a5e3fef951c0889a27 (patch) | |
tree | aee7d0e975f7177f05f429d0e604c710092767e2 | |
parent | f0948e7e2e39c659c9363c9fac565c3192fd1aaa (diff) | |
download | qutebrowser-a4abf0f535c1314048ada8a5e3fef951c0889a27.tar.gz qutebrowser-a4abf0f535c1314048ada8a5e3fef951c0889a27.zip |
tests: Re-add skipping for ListOrValue with keytype int
In d8d9311c2e1fe9c3981febe15774aec8849a2934 we assumed the original check was a
mistake - but it wasn't, what we wanted was an additional check instead.
-rw-r--r-- | tests/unit/config/test_configtypes.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index 25c1b12e9..fe954ca3d 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -262,11 +262,13 @@ class TestAll: configtypes.PercOrInt, # ditto ]: return - - if (isinstance(typ, functools.partial) and - isinstance(typ.func, configtypes.ListOrValue)): - # in: "- /" - # out: "/" + elif (isinstance(typ, functools.partial) and + isinstance(typ.func, configtypes.ListOrValue)): + # "- /" -> "/" + return + elif (isinstance(typ, configtypes.ListOrValue) and + isinstance(typ.valtype, configtypes.Int)): + # "00" -> "0" return assert converted == s |