Deprecate setting a parameter value before full instance initialization #1201
Annotations
5 errors
Test Unit:
tests/testdeprecations.py#L107
TestDeprecateParameterizedModule.test_deprecate_setting_parameter_before_init
Failed: DID NOT RAISE <class 'param._utils.ParamPendingDeprecationWarning'>
|
Test Unit:
tests/testparameterizedobject.py#L403
TestParameterized.test_instantiation_set_before_super
param._utils.ParamPendingDeprecationWarning: Setting the Parameter 'x' to 1 before the Parameterized class 'P' is fully instantiated is deprecated and will raise an error in a future version. Ensure the value is set after calling `super().__init__(**params)` in the constructor.
|
Test Unit:
tests/testparameterizedobject.py#L420
TestParameterized.test_instantiation_set_before_super_contrived
param._utils.ParamPendingDeprecationWarning: Setting the Parameter 'value' to 'B' before the Parameterized class 'P' is fully instantiated is deprecated and will raise an error in a future version. Ensure the value is set after calling `super().__init__(**params)` in the constructor.
|
Test Unit:
tests/testparameterizedobject.py#L445
TestParameterized.test_instantiation_set_before_super_subclass
param._utils.ParamPendingDeprecationWarning: Setting the Parameter 'batched' to True before the Parameterized class 'B' is fully instantiated is deprecated and will raise an error in a future version. Ensure the value is set after calling `super().__init__(**params)` in the constructor.
|
Test Unit
Process completed with exit code 1.
|
Loading