mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
[3.12] gh-107461 ctypes: Add a testcase for nested _as_parameter_
lookup (GH-107462) (GH-114858)
(cherry picked from commit 0bf42dae7e
)
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
This commit is contained in:
parent
600724d442
commit
0cf136c9a0
1 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue