Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-128377: Fix test_cmd_line.test_non_interactive_output_buffering fail with PYTHONUNBUFFERED=1 #128378

Merged
merged 8 commits into from
Jan 12, 2025
2 changes: 2 additions & 0 deletions Lib/test/test_cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ def test_osx_android_utf8(self):
self.assertEqual(stdout, expected)
self.assertEqual(p.returncode, 0)

@unittest.skipIf(os.environ.get("PYTHONUNBUFFERED", "0") != "0",
"Python stdio buffering is disabled.")
picnixz marked this conversation as resolved.
Show resolved Hide resolved
def test_non_interactive_output_buffering(self):
code = textwrap.dedent("""
import sys
Expand Down
Loading