diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py index 9699cc121..7e600d2c9 100644 --- a/_pytest/assertion/rewrite.py +++ b/_pytest/assertion/rewrite.py @@ -205,7 +205,6 @@ def _make_rewritten_pyc(state, fn, pyc, co): proc_pyc = pyc + "." + str(os.getpid()) if _write_pyc(co, fn, proc_pyc): os.rename(proc_pyc, pyc) - return co def _read_pyc(source, pyc): """Possibly read a py.test pyc containing rewritten code.