Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/ray/data/tests/test_backpressure_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,4 @@ def __call__(self, df: np.ndarray):
if __name__ == "__main__":
import sys

sys.exit(pytest.main(["-v", __file__]))
sys.exit(pytest.main(["-sv", __file__]))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better readability, it's good practice to separate combined short options into their own arguments. Additionally, adding a comment to explain why the -s flag is necessary for this specific test file would be helpful for future maintainers, given the inconsistency with other tests in the repository.

For example:

# The -s flag is added to ease debugging of flaky tests.
Suggested change
sys.exit(pytest.main(["-sv", __file__]))
sys.exit(pytest.main(["-s", "-v", __file__]))