gsamokovarov/frames.py — pull request #1 by karanlyons (2012-05-11 03:07:43+00:00)
Title: Adding `sys._getframe()` callback

If the current implementation of Python doesn't have `sys._getframe()`, this function should be able to fill in, albeit twice as slowly.

This fallback works, but I wasn't sure of the best way to rewrite `tests.py` to include it. Ideally you could just `delattr(sys, '_getframe')` and then re-run the tests, but I'm not aware of how to do this with attest.

(This is my first GitHub pull request, so I apologize if I've messed some part of it up.)