MCPcopy Index your code
hub / github.com/python/cpython / test_write_windows_console

Method test_write_windows_console

Lib/test/test_os/test_os.py:386–393  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

384 @unittest.skipUnless(sys.platform == 'win32',
385 'test specific to the Windows console')
386 def test_write_windows_console(self):
387 # Issue #11395: the Windows console returns an error (12: not enough
388 # space error) on writing into stdout if stdout mode is binary and the
389 # length is greater than 66,000 bytes (or less, depending on heap
390 # usage).
391 code = "print('x' * 100000)"
392 self.write_windows_console(sys.executable, "-c", code)
393 self.write_windows_console(sys.executable, "-u", "-c", code)
394
395 def fdopen_helper(self, *args):
396 fd = os.open(os_helper.TESTFN, os.O_RDONLY)

Callers

nothing calls this directly

Calls 1

write_windows_consoleMethod · 0.95

Tested by

no test coverage detected