Skip to content

Commit

Permalink
Return explicit None from rewrite hook's find_module
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jun 21, 2016
1 parent 8b0fb47 commit 819942e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/assertion/rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def find_module(self, name, path=None):

fn_pypath = py.path.local(fn)
if not self._should_rewrite(fn_pypath, state):
return
return None

# The requested module looks like a test file, so rewrite it. This is
# the most magical part of the process: load the source, rewrite the
Expand Down

0 comments on commit 819942e

Please sign in to comment.