cpython/Lib/test/test_inspect
Miss Islington (bot) 39c3f11f25
[3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120684)
The `inspect.ismethoddescriptor()` function did not check for the lack of
`__delete__()` and, consequently, erroneously returned True when applied
to *data* descriptors with only `__get__()` and `__delete__()` defined.

(cherry picked from commit dacc5ac71a)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
2024-06-19 17:01:09 +10:00
..
__init__.py
inspect_fodder.py gh-101860: Expose __name__ on property (GH-101876) 2024-02-20 17:14:34 +02:00
inspect_fodder2.py gh-116987: Support class code objects in inspect.findsource() (GH-117025) 2024-03-21 10:30:10 +00:00
inspect_stock_annotations.py
inspect_stringized_annotations.py
inspect_stringized_annotations_2.py
inspect_stringized_annotations_pep695.py [3.13] Add some more edge-case tests for inspect.get_annotations with eval_str=True (GH-120550) (#120551) 2024-06-15 13:16:40 +00:00
test_inspect.py [3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120684) 2024-06-19 17:01:09 +10:00