makepyfile with a test method + inline_run disables assertion rewriting (?) #4947
Labels
topic: rewrite
related to the assertion rewrite mechanism
type: bug
problem that needs to be addressed
OS: Ubuntu 16.04, python2.7, pytest 4.3.1
I'm working on a plugin for pytest, therefore I create temporary python files which hold test methods. This however makes the assertion-error report of pytest less human-readable.
Gives me:
When I rename
def test_bar
to justdef bar
, I get the expected easy to read error:So it seems it does not like the test-method in the file. Not sure if this is a bug, or I am using it wrong?
pip list
The text was updated successfully, but these errors were encountered: