Return explicit None from rewrite hook's find_module

This commit is contained in:
Bruno Oliveira 2016-06-21 12:28:36 +02:00
parent 8b0fb47c79
commit 819942e964
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class AssertionRewritingHook(object):
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