summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/ctypes/test/test_as_parameter.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/ctypes/test/test_as_parameter.py b/Lib/ctypes/test/test_as_parameter.py
index aaaf6e2..457643f 100644
--- a/Lib/ctypes/test/test_as_parameter.py
+++ b/Lib/ctypes/test/test_as_parameter.py
@@ -227,5 +227,16 @@ class AsParamPropertyWrapperTestCase(BasicWrapTestCase):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+class AsParamNestedWrapperTestCase(BasicWrapTestCase):
+ """Test that _as_parameter_ is evaluated recursively.
+
+ The _as_parameter_ attribute can be another object which
+ defines its own _as_parameter_ attribute.
+ """
+
+ def wrap(self, param):
+ return AsParamWrapper(AsParamWrapper(AsParamWrapper(param)))
+
+
if __name__ == '__main__':
unittest.main()