From 0b269dd8abc8e23d4faccbe02ff02aafe8f40de5 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 3 Aug 2016 08:54:43 -0300 Subject: [PATCH] Add state.trace call when matching "must_rewrite" modules --- _pytest/assertion/rewrite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py index 11ceab0e811..db75e47b1d8 100644 --- a/_pytest/assertion/rewrite.py +++ b/_pytest/assertion/rewrite.py @@ -161,6 +161,7 @@ def _should_rewrite(self, name, fn_pypath, state): for marked in self._must_rewrite: if marked.startswith(name): + state.trace("matched marked file %r (from %r)" % (name, marked)) return True return False