diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:25:51 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:25:51 -0500 |
| commit | 7dbaa0409ab5e4830076014d75f2e0f6ef4f36d2 (patch) | |
| tree | fbf9dfdef96de4fa5bf48af75ef499cce5cd63db /scripts/ci_expected_failures.py | |
| parent | 2e52b2f1d77ca37e5a4cb9136a488ae2537bba5d (diff) | |
Repo rules after round 44: stdout guards on 13 programs, newline= on four text writes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/ci_expected_failures.py')
| -rw-r--r-- | scripts/ci_expected_failures.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/ci_expected_failures.py b/scripts/ci_expected_failures.py index 13dce177d..b07b8de3c 100644 --- a/scripts/ci_expected_failures.py +++ b/scripts/ci_expected_failures.py | |||
| @@ -38,4 +38,8 @@ def main(argv: list[str]) -> int: | |||
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | if __name__ == "__main__": | 40 | if __name__ == "__main__": |
| 41 | try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode | ||
| 42 | sys.stdout.reconfigure(errors="replace") | ||
| 43 | except (AttributeError, ValueError, OSError): | ||
| 44 | pass | ||
| 41 | sys.exit(main(sys.argv[1:])) | 45 | sys.exit(main(sys.argv[1:])) |