Hacker News new | ask | show | jobs
by shoo 4632 days ago
you (& afandian) make a good point, and i believe that's roughly how py.test does it, by rewriting the code of test modules before running tests. which would be fair to call magic.

http://pytest.org/latest/assert.html#advanced-assertion-intr...