We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_cmd_line
PYTHONUNBUFFERED=1
1 parent e389d6c commit 2bd00e0Copy full SHA for 2bd00e0
Lib/test/test_cmd_line.py
@@ -1175,7 +1175,15 @@ def test_decoding_error_at_the_end_of_the_line(self):
1175
self.check_string(br"'\u1f'")
1176
1177
1178
+PYTHONUNBUFFERED_ENV_VAR = os.environ["PYTHONUNBUFFERED"]
1179
+
1180
+def setUpModule():
1181
+ # we expect buffered stdio
1182
+ os.environ["PYTHONUNBUFFERED"] = "0"
1183
1184
def tearDownModule():
1185
+ # restore original value
1186
+ os.environ["PYTHONUNBUFFERED"] = PYTHONUNBUFFERED_ENV_VAR
1187
support.reap_children()
1188
1189
0 commit comments