summaryrefslogtreecommitdiff
path: root/tests/unit/config/test_configtypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/config/test_configtypes.py')
-rw-r--r--tests/unit/config/test_configtypes.py12
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