We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a809e6 + fc5c960 commit 127a372Copy full SHA for 127a372
src/_pytest/runner.py
@@ -180,7 +180,7 @@ def pytest_runtest_call(item: Item) -> None:
180
assert e.__traceback__ is not None
181
# Skip *this* frame
182
sys.last_traceback = e.__traceback__.tb_next
183
- raise e
+ raise
184
185
186
def pytest_runtest_teardown(item: Item, nextitem: Optional[Item]) -> None:
@@ -512,7 +512,7 @@ def setup(self, item: Item) -> None:
512
col.setup()
513
except TEST_OUTCOME as exc:
514
self.stack[col] = (self.stack[col][0], exc)
515
- raise exc
516
517
def addfinalizer(self, finalizer: Callable[[], object], node: Node) -> None:
518
"""Attach a finalizer to the given node.
0 commit comments