Fix pytest tests to exit with proper exit code (#16681)

This commit is contained in:
Alison Shao
2026-01-07 15:20:46 -08:00
committed by GitHub
parent 6037267f5b
commit 3a4767daa3
8 changed files with 22 additions and 8 deletions
+3 -1
View File
@@ -51,4 +51,6 @@ def test_replace_offsets_with_tokens_per_frame():
if __name__ == "__main__":
pytest.main([__file__])
import sys
sys.exit(pytest.main([__file__]))
+3 -1
View File
@@ -56,4 +56,6 @@ def test_sample_video_frames_lengths(case: Case):
assert result == case.expected_frames
if __name__ == "__main__":
pytest.main([__file__])
import sys
sys.exit(pytest.main([__file__]))