Skip to content

Commit 6dc9373

Browse files
author
Lucas Haupt
committed
Potential bugfix: pytest-monitor.py:210 raise e instead of returning it
1 parent bd55b75 commit 6dc9373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_monitor/pytest_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def wrapped_function():
202202
except Exception:
203203
raise
204204
except BaseException as e:
205-
return e
205+
raise e
206206

207207
def prof():
208208
m = memory_profiler.memory_usage((wrapped_function, ()), max_iterations=1, max_usage=True, retval=True)

0 commit comments

Comments
 (0)