We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_as_parameter_
1 parent 600724d commit 0cf136cCopy full SHA for 0cf136c
Lib/test/test_ctypes/test_as_parameter.py
@@ -227,5 +227,16 @@ class AsParamPropertyWrapperTestCase(BasicWrapTestCase):
227
228
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
229
230
+class AsParamNestedWrapperTestCase(BasicWrapTestCase):
231
+ """Test that _as_parameter_ is evaluated recursively.
232
+
233
+ The _as_parameter_ attribute can be another object which
234
+ defines its own _as_parameter_ attribute.
235
+ """
236
237
+ def wrap(self, param):
238
+ return AsParamWrapper(AsParamWrapper(AsParamWrapper(param)))
239
240
241
if __name__ == '__main__':
242
unittest.main()
0 commit comments