Skip to content

Commit

Permalink
revert pytest change causing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
romainkomorndatadog committed Jul 20, 2024
1 parent aecf087 commit 587a5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/contrib/pytest/_plugin_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,9 @@ def pytest_collection_modifyitems(session, config, items):
if test_is_unskippable and not current_suite_has_unskippable_test:
current_suite_has_unskippable_test = True
# Retroactively mark collected tests as forced:
items_to_skip_by_module[item.module] = []
for item_to_skip in items_to_skip_by_module[item.module]:
item_to_skip._dd_itr_forced = True
items_to_skip_by_module[item.module] = []

if _CIVisibility._instance._should_skip_path(str(get_fslocation_from_item(item)[0]), item_name):
if test_is_unskippable or (
Expand Down

0 comments on commit 587a5d5

Please sign in to comment.