_make_rewritten_pyc doesn't need to return anything
This commit is contained in:
parent
643ab120f4
commit
c5dee7b549
_pytest/assertion
|
@ -205,7 +205,6 @@ def _make_rewritten_pyc(state, fn, pyc, co):
|
||||||
proc_pyc = pyc + "." + str(os.getpid())
|
proc_pyc = pyc + "." + str(os.getpid())
|
||||||
if _write_pyc(co, fn, proc_pyc):
|
if _write_pyc(co, fn, proc_pyc):
|
||||||
os.rename(proc_pyc, pyc)
|
os.rename(proc_pyc, pyc)
|
||||||
return co
|
|
||||||
|
|
||||||
def _read_pyc(source, pyc):
|
def _read_pyc(source, pyc):
|
||||||
"""Possibly read a py.test pyc containing rewritten code.
|
"""Possibly read a py.test pyc containing rewritten code.
|
||||||
|
|
Loading…
Reference in New Issue