Skip to content

Commit 819942e

Browse files
committed
Return explicit None from rewrite hook's find_module
1 parent 8b0fb47 commit 819942e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/assertion/rewrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def find_module(self, name, path=None):
8787

8888
fn_pypath = py.path.local(fn)
8989
if not self._should_rewrite(fn_pypath, state):
90-
return
90+
return None
9191

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

0 commit comments

Comments
 (0)