summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_inspect/inspect_fodder2.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in ↵Serhiy Storchaka2024-09-281-0/+12
| | | | | | | | | | | | | classes (GH-123613) * Setting the __module__ attribute for a class now removes the __firstlineno__ item from the type's dict. * The _collections_abc and _pydecimal modules now completely replace the collections.abc and decimal modules after importing them. This allows to get the source of classes and functions defined in these modules. * inspect.findsource() now checks whether the first line number for a class is out of bound.
* gh-122981: Fix inspect.getsource() for generated classes with Python base ↵Serhiy Storchaka2024-08-201-0/+42
| | | | | | classes (GH-123001) Look up __firstlineno__ only in the class' dict, without searching in base classes.
* gh-116987: Support class code objects in inspect.findsource() (GH-117025)Tian Gao2024-03-211-0/+5
|
* gh-108303: Move all inspect test files to `test_inspect/` (#109607)Nikita Sobolev2023-10-101-0/+312