simplistix / sybil

Automated testing for the examples in your documentation.
https://sybil.readthedocs.io/en/latest/
Other
74 stars 14 forks source link

Use stdlib inspect to get the caller filename #58

Closed wimglenn closed 1 year ago

wimglenn commented 1 year ago

sys._getframe is an off-label use (and might return None in some cases), stdlib inspect has the public APIs