[3.11] gh-107461 ctypes: Add a testcase for nested _as_parameter_ lookup (GH-107462) (GH-114859)

(cherry picked from commit 0bf42dae7e)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
This commit is contained in:
Miss Islington (bot) 2024-02-01 13:08:52 +01:00 committed by GitHub
parent 8d2a193cf6
commit 9979635612
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()