Skip to content

Commit ec61182

Browse files
Fix test_parameter
Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com>
1 parent 71bafe7 commit ec61182

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modin/tests/config/test_parameter.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@
1616
import pytest
1717

1818
from modin.config import Parameter
19+
from modin.config.pubsub import _TYPE_PARAMS
1920

2021

2122
def make_prefilled(vartype, varinit):
2223
class Prefilled(Parameter, type=vartype):
2324
@classmethod
2425
def _get_value_from_config(cls):
25-
return varinit
26+
if not _TYPE_PARAMS[cls.type].verify(varinit):
27+
raise ValueError(f"Unsupported raw value: {varinit}")
28+
return _TYPE_PARAMS[cls.type].decode(varinit)
2629

2730
return Prefilled
2831

0 commit comments

Comments
 (0)