[misc] CI hygiene: enforce __main__ entry, drop silent-skipped tests, fix rerun-test protoc (#23305)

This commit is contained in:
Liangsheng Yin
2026-04-20 21:16:24 -07:00
committed by GitHub
parent 6b19e8a452
commit 6cc2eee50d
19 changed files with 101 additions and 3168 deletions
@@ -42,3 +42,9 @@ class TestExpandPreset:
"""Unknown preset name raises ValueError."""
with pytest.raises(ValueError, match="Unknown value for --preset"):
expand_preset(["--preset", "nonexistent"], presets=PRESETS)
if __name__ == "__main__":
import sys
sys.exit(pytest.main([__file__, "-v"]))