Skip to content

Commit

Permalink
Add state.trace call when matching "must_rewrite" modules
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus authored Aug 3, 2016
1 parent d2ff804 commit 0b269dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _pytest/assertion/rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b269dd

Please sign in to comment.