aboutsummaryrefslogtreecommitdiffstats
path: root/coin_test_instructions.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2019-05-11 16:48:08 +0200
committerChristian Tismer <tismer@stackless.com>2019-05-27 09:59:20 +0200
commit0fc54b04d6f47b74a35e4d13d5f62e459db20132 (patch)
tree4172b600619629eb3ffca9f071c68d7ae03e7b8b /coin_test_instructions.py
parent91cb27a2a7180e9c05b806d870b266fa31bef041 (diff)
Make the __signature__ attribute writable by default
It turned out that the mock tool of the unittest module wants to write into a __signature__ attribute. We now allow this by implementing a writable attribute that memorizes any written value. When __del__ is used, the original value re-appears. We further added a check if a computed __signature__ attribute exists. Then we don't allow write access. This way, defined signatures are read-only, but a non-existent attribute stays writable. Change-Id: Ib70de723e3160787df04e075e5c540a4cb24d410 Fixes: PYSIDE-1004 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'coin_test_instructions.py')
0 files changed, 0 insertions, 0 deletions