2 ms·
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
by shoo 13y 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-introspection http://pytest.org/latest/assert.html#advanced-assertion-intr...