Skip to content

Commit bd3218c

Browse files
committed
add backwards compatibility for pytest hook wrapper (microsoft#23781)
fixes microsoft#23780
1 parent c326428 commit bd3218c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_files/vscode_pytest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ def send_post_request(
888888

889889

890890
class DeferPlugin:
891-
@pytest.hookimpl(wrapper=True)
891+
@pytest.hookimpl(hookwrapper=True)
892892
def pytest_xdist_auto_num_workers(self, config: pytest.Config) -> Generator[None, int, int]:
893893
"""Determine how many workers to use based on how many tests were selected in the test explorer."""
894894
return min((yield), len(config.option.file_or_dir))

0 commit comments

Comments
 (0)